class NewSMSTemplateEntity { NewSMSTemplateEntity( {this.errorCode, this.description, this.errorMsg, this.dataList}); NewSMSTemplateEntity.fromJson(Map json) { errorCode = json['errorCode']; description = json['description']; errorMsg = json['errorMsg']; if (json['data'] != null) { dataList = []; json['data'].forEach((v) { dataList!.add(SMSTemplateData.fromJson(v)); }); } } int? errorCode; String? description; String? errorMsg; List? dataList; Map toJson() { final Map data = {}; data['errorCode'] = errorCode; data['description'] = description; data['errorMsg'] = errorMsg; if (dataList != null) { data['data'] = dataList!.map((v) => v.toJson()).toList(); } return data; } } class SMSTemplateData { SMSTemplateData( {this.contentType, this.typeName, this.template, this.fixedKey}); SMSTemplateData.fromJson(Map json) { contentType = json['content_type']; typeName = json['typeName']; template = json['template']; fixedKey = json['fixed_key']; } int? contentType; String? typeName; String? template; String? fixedKey; String? regards = ''; String? tips = ''; int? id; String? name; int? type; bool? isUpdate = false; Map toJson() { final Map data = {}; data['content_type'] = contentType; data['typeName'] = typeName; data['template'] = template; data['fixed_key'] = fixedKey; return data; } }