//TODO CLEAN BOTTOM CODES. @Deprecated("shop_upgrade_code_model need to be cleaned.") class ShopUpgradeCodeModel { String code; String msg; Data data; ShopUpgradeCodeModel({this.code, this.msg, this.data}); ShopUpgradeCodeModel.fromJson(Map json) { code = json['code']; msg = json['msg']; data = json['data'] != null ? new Data.fromJson(json['data']) : null; } Map toJson() { final Map data = new Map(); data['code'] = this.code; data['msg'] = this.msg; if (this.data != null) { data['data'] = this.data.toJson(); } return data; } } class Data { List usedCode; List unusedCode; Data({this.usedCode, this.unusedCode}); Data.fromJson(Map json) { usedCode = json['usedCode'] != null ? json['usedCode'].cast() : []; unusedCode = json['unusedCode'] != null ? json['unusedCode'].cast() : []; } Map toJson() { final Map data = new Map(); data['usedCode'] = this.usedCode; data['unusedCode'] = this.unusedCode; return data; } }