toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
    json[r'_id'] = this.id;
    json[r'tenantId'] = this.tenantId;
    json[r'emailTemplateId'] = this.emailTemplateId;
    json[r'displayName'] = this.displayName;
    json[r'createdAt'] = this.createdAt.toUtc().toIso8601String();
  if (this.updatedAt != null) {
    json[r'updatedAt'] = this.updatedAt!.toUtc().toIso8601String();
  } else {
    json[r'updatedAt'] = null;
  }
  if (this.updatedByUserId != null) {
    json[r'updatedByUserId'] = this.updatedByUserId;
  } else {
    json[r'updatedByUserId'] = null;
  }
  if (this.domain != null) {
    json[r'domain'] = this.domain;
  } else {
    json[r'domain'] = null;
  }
    json[r'ejs'] = this.ejs;
    json[r'translationOverridesByLocale'] = this.translationOverridesByLocale;
  if (this.testData != null) {
    json[r'testData'] = this.testData;
  } else {
    json[r'testData'] = null;
  }
  return json;
}