class SendEmailNotificationEntity { SendEmailNotificationEntity( {this.errorCode, this.description, this.errorMsg, this.data}); SendEmailNotificationEntity.fromJson(Map json) { errorCode = json['errorCode']; description = json['description']; errorMsg = json['errorMsg']; data = json['data'] != null ? EmailNotificationData.fromJson(json['data']) : null; } int? errorCode; String? description; String? errorMsg; EmailNotificationData? 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 EmailNotificationData { EmailNotificationData({this.list}); EmailNotificationData.fromJson(Map json) { if (json['list'] != null) { list = []; json['list'].forEach((v) { list!.add(EmailNotificationItem.fromJson(v)); }); } } List? list; Map toJson() { final Map data = {}; if (list != null) { data['list'] = list!.map((EmailNotificationItem v) => v.toJson()).toList(); } return data; } } class EmailNotificationItem { EmailNotificationItem( {this.type, this.name, this.template, this.isUse, this.fee}); EmailNotificationItem.fromJson(Map json) { type = json['type']; name = json['name']; template = json['template']; isUse = json['isUse']; fee = json['fee']; } String? type; String? name; String? template; int? isUse; int? fee; Map toJson() { final Map data = {}; data['type'] = type; data['name'] = name; data['template'] = template; data['isUse'] = isUse; data['fee'] = fee; return data; } }