base_model.dart 379 B

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