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