class BaseResponse { int? code; dynamic data; bool? fail; String? key; String? msg; bool? success; BaseResponse( {this.code, this.data, this.fail, this.key, this.msg, this.success}); BaseResponse.fromJson(Map json) { code = json['code']; fail = json['fail']; key = json['key']; data = json['data']; msg = json['msg']; success = json['success']; } Map toJson() { final Map data = new Map(); data['code'] = code; data['fail'] = fail; data['data'] = data; data['key'] = key; data['msg'] = msg; data['success'] = success; return data; } }