toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.emailAddress != null) {
    json[r'emailAddress'] = this.emailAddress;
  } else {
    json[r'emailAddress'] = null;
  }
  if (this.domainName != null) {
    json[r'domainName'] = this.domainName;
  } else {
    json[r'domainName'] = null;
  }
  if (this.domainId != null) {
    json[r'domainId'] = this.domainId;
  } else {
    json[r'domainId'] = null;
  }
  if (this.name != null) {
    json[r'name'] = this.name;
  } else {
    json[r'name'] = null;
  }
  if (this.description != null) {
    json[r'description'] = this.description;
  } else {
    json[r'description'] = null;
  }
  if (this.useDomainPool != null) {
    json[r'useDomainPool'] = this.useDomainPool;
  } else {
    json[r'useDomainPool'] = null;
  }
  if (this.tags != null) {
    json[r'tags'] = this.tags;
  } else {
    json[r'tags'] = null;
  }
  if (this.expiresAt != null) {
    json[r'expiresAt'] = this.expiresAt!.toUtc().toIso8601String();
  } else {
    json[r'expiresAt'] = null;
  }
  if (this.favourite != null) {
    json[r'favourite'] = this.favourite;
  } else {
    json[r'favourite'] = null;
  }
  if (this.expiresIn != null) {
    json[r'expiresIn'] = this.expiresIn;
  } else {
    json[r'expiresIn'] = null;
  }
  if (this.allowTeamAccess != null) {
    json[r'allowTeamAccess'] = this.allowTeamAccess;
  } else {
    json[r'allowTeamAccess'] = null;
  }
  if (this.inboxType != null) {
    json[r'inboxType'] = this.inboxType;
  } else {
    json[r'inboxType'] = null;
  }
  if (this.virtualInbox != null) {
    json[r'virtualInbox'] = this.virtualInbox;
  } else {
    json[r'virtualInbox'] = null;
  }
  if (this.useShortAddress != null) {
    json[r'useShortAddress'] = this.useShortAddress;
  } else {
    json[r'useShortAddress'] = null;
  }
  return json;
}