import 'package:fuwei/generated/json/base/json_convert_content.dart'; import 'package:fuwei/data/base_model_entity.dart'; BaseModelEntity $BaseModelEntityFromJson(Map json) { final BaseModelEntity baseModelEntity = BaseModelEntity(); final int? code = jsonConvert.convert(json['code']); if (code != null) { baseModelEntity.code = code; } final String? msg = jsonConvert.convert(json['msg']); if (msg != null) { baseModelEntity.msg = msg; } final T? data = JsonConvert.fromJsonAsT(json['data']); if (data != null) { baseModelEntity.data = data; } return baseModelEntity; } Map $BaseModelEntityToJson(BaseModelEntity entity) { final Map data = {}; data['code'] = entity.code; data['msg'] = entity.msg; data['data'] = entity.data; return data; }