toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
    json[r'id'] = this.id;
  if (this.domainId != null) {
    json[r'domainId'] = this.domainId;
  } else {
    json[r'domainId'] = null;
  }
    json[r'createdAt'] = this.createdAt.toUtc().toIso8601String();
  if (this.name != null) {
    json[r'name'] = this.name;
  } else {
    json[r'name'] = null;
  }
  if (this.emailAddress != null) {
    json[r'emailAddress'] = this.emailAddress;
  } else {
    json[r'emailAddress'] = null;
  }
    json[r'favourite'] = this.favourite;
  if (this.tags != null) {
    json[r'tags'] = this.tags;
  } else {
    json[r'tags'] = null;
  }
    json[r'teamAccess'] = this.teamAccess;
  if (this.inboxType != null) {
    json[r'inboxType'] = this.inboxType;
  } else {
    json[r'inboxType'] = null;
  }
    json[r'readOnly'] = this.readOnly;
    json[r'virtualInbox'] = this.virtualInbox;
  return json;
}