class CustomSMSTemplateListEntity { CustomSMSTemplateListEntity( {this.errorCode, this.description, this.errorMsg, this.data}); CustomSMSTemplateListEntity.fromJson(Map json) { errorCode = json['errorCode']; description = json['description']; errorMsg = json['errorMsg']; data = json['data'] != null ? CustomSMSTemplateListData.fromJson(json['data']) : null; } int? errorCode; String? description; String? errorMsg; CustomSMSTemplateListData? data; Map toJson() { final Map data = {}; data['errorCode'] = errorCode; data['description'] = description; data['errorMsg'] = errorMsg; if (this.data != null) { data['data'] = this.data!.toJson(); } return data; } } class CustomSMSTemplateListData { CustomSMSTemplateListData( {this.type, this.list, this.pageNo, this.pageSize, this.pages, this.total}); CustomSMSTemplateListData.fromJson(Map json) { type = json['type']; if (json['list'] != null) { list = []; json['list'].forEach((v) { list!.add(CustomSMSTemplateItem.fromJson(v)); }); } pageNo = json['pageNo']; pageSize = json['pageSize']; pages = json['pages']; total = json['total']; } int? type; List? list; int? pageNo; int? pageSize; int? pages; int? total; Map toJson() { final Map data = {}; data['type'] = type; if (list != null) { data['list'] = list!.map((v) => v.toJson()).toList(); } data['pageNo'] = pageNo; data['pageSize'] = pageSize; data['pages'] = pages; data['total'] = total; return data; } } class CustomSMSTemplateItem { CustomSMSTemplateItem( {this.id, this.userId, this.type, this.contentType, this.name, this.regards, this.tips, this.fixedKey, this.createdAt, this.updatedAt, this.template, this.fixedTemplate}); CustomSMSTemplateItem.fromJson(Map json) { id = json['id']; userId = json['user_id']; type = json['type']; contentType = json['content_type']; name = json['name']; regards = json['regards']; tips = json['tips']; fixedKey = json['fixed_key']; createdAt = json['created_at']; updatedAt = json['updated_at']; template = json['template']; fixedTemplate = json['fixed_template']; } int? id; int? userId; int? type; int? contentType; String? name; String? regards; String? tips; String? fixedKey; String? createdAt; String? updatedAt; String? template; String? fixedTemplate; Map toJson() { final Map data = {}; data['id'] = id; data['user_id'] = userId; data['type'] = type; data['content_type'] = contentType; data['name'] = name; data['regards'] = regards; data['tips'] = tips; data['fixed_key'] = fixedKey; data['created_at'] = createdAt; data['updated_at'] = updatedAt; data['template'] = template; data['fixed_template'] = fixedTemplate; return data; } }