message_model.dart 378 B

12345678910111213141516
  1. /// Description:
  2. /// Time : 2021年12月03日 Friday
  3. /// Author : liuyuqi.gov@msncn
  4. class MessageModel<T> {
  5. String msg = "";
  6. bool success = false;
  7. T? data;
  8. MessageModel({this.msg = "", this.success = false, this.data});
  9. MessageModel.fromJson(Map<String, dynamic> json) {
  10. msg = json["msg"];
  11. success = json["success"];
  12. data = json["data"];
  13. }
  14. }