toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
    json[r'accountItems'] = this.accountItems;
  if (this.accountMenu != null) {
    json[r'accountMenu'] = this.accountMenu;
  } else {
    json[r'accountMenu'] = null;
  }
  if (this.avatar != null) {
    json[r'avatar'] = this.avatar;
  } else {
    json[r'avatar'] = null;
  }
  if (this.balanceCredit != null) {
    json[r'balanceCredit'] = this.balanceCredit;
  } else {
    json[r'balanceCredit'] = null;
  }
  if (this.balanceCurrency != null) {
    json[r'balanceCurrency'] = this.balanceCurrency;
  } else {
    json[r'balanceCurrency'] = null;
  }
    json[r'countryCodes'] = this.countryCodes;
  if (this.createdAt != null) {
    json[r'createdAt'] = this.createdAt!.toUtc().toIso8601String();
  } else {
    json[r'createdAt'] = null;
  }
  if (this.createdTime != null) {
    json[r'createdTime'] = this.createdTime;
  } else {
    json[r'createdTime'] = null;
  }
  if (this.dcrPolicy != null) {
    json[r'dcrPolicy'] = this.dcrPolicy;
  } else {
    json[r'dcrPolicy'] = null;
  }
  if (this.defaultApplication != null) {
    json[r'defaultApplication'] = this.defaultApplication;
  } else {
    json[r'defaultApplication'] = null;
  }
  if (this.defaultAvatar != null) {
    json[r'defaultAvatar'] = this.defaultAvatar;
  } else {
    json[r'defaultAvatar'] = null;
  }
  if (this.defaultPassword != null) {
    json[r'defaultPassword'] = this.defaultPassword;
  } else {
    json[r'defaultPassword'] = null;
  }
  if (this.deleted != null) {
    json[r'deleted'] = this.deleted;
  } else {
    json[r'deleted'] = null;
  }
  if (this.disableSignin != null) {
    json[r'disableSignin'] = this.disableSignin;
  } else {
    json[r'disableSignin'] = null;
  }
  if (this.displayName != null) {
    json[r'displayName'] = this.displayName;
  } else {
    json[r'displayName'] = null;
  }
  if (this.emoji != null) {
    json[r'emoji'] = this.emoji;
  } else {
    json[r'emoji'] = null;
  }
  if (this.enableSoftDeletion != null) {
    json[r'enableSoftDeletion'] = this.enableSoftDeletion;
  } else {
    json[r'enableSoftDeletion'] = null;
  }
  if (this.enableTour != null) {
    json[r'enableTour'] = this.enableTour;
  } else {
    json[r'enableTour'] = null;
  }
  if (this.failedSigninFrozenTime != null) {
    json[r'failedSigninFrozenTime'] = this.failedSigninFrozenTime;
  } else {
    json[r'failedSigninFrozenTime'] = null;
  }
  if (this.failedSigninLimit != null) {
    json[r'failedSigninLimit'] = this.failedSigninLimit;
  } else {
    json[r'failedSigninLimit'] = null;
  }
  if (this.favicon != null) {
    json[r'favicon'] = this.favicon;
  } else {
    json[r'favicon'] = null;
  }
  if (this.founder != null) {
    json[r'founder'] = this.founder;
  } else {
    json[r'founder'] = null;
  }
  if (this.hasPrivilegeConsent != null) {
    json[r'hasPrivilegeConsent'] = this.hasPrivilegeConsent;
  } else {
    json[r'hasPrivilegeConsent'] = null;
  }
  if (this.id != null) {
    json[r'id'] = this.id;
  } else {
    json[r'id'] = null;
  }
  if (this.initScore != null) {
    json[r'initScore'] = this.initScore;
  } else {
    json[r'initScore'] = null;
  }
  if (this.ipRestriction != null) {
    json[r'ipRestriction'] = this.ipRestriction;
  } else {
    json[r'ipRestriction'] = null;
  }
  if (this.ipWhitelist != null) {
    json[r'ipWhitelist'] = this.ipWhitelist;
  } else {
    json[r'ipWhitelist'] = null;
  }
  if (this.isPersonal != null) {
    json[r'isPersonal'] = this.isPersonal;
  } else {
    json[r'isPersonal'] = null;
  }
  if (this.isProfilePublic != null) {
    json[r'isProfilePublic'] = this.isProfilePublic;
  } else {
    json[r'isProfilePublic'] = null;
  }
  if (this.kerberosKdcHost != null) {
    json[r'kerberosKdcHost'] = this.kerberosKdcHost;
  } else {
    json[r'kerberosKdcHost'] = null;
  }
  if (this.kerberosKeytab != null) {
    json[r'kerberosKeytab'] = this.kerberosKeytab;
  } else {
    json[r'kerberosKeytab'] = null;
  }
  if (this.kerberosRealm != null) {
    json[r'kerberosRealm'] = this.kerberosRealm;
  } else {
    json[r'kerberosRealm'] = null;
  }
  if (this.kerberosServiceName != null) {
    json[r'kerberosServiceName'] = this.kerberosServiceName;
  } else {
    json[r'kerberosServiceName'] = null;
  }
    json[r'languages'] = this.languages;
    json[r'ldapAttributes'] = this.ldapAttributes;
  if (this.logo != null) {
    json[r'logo'] = this.logo;
  } else {
    json[r'logo'] = null;
  }
  if (this.logoDark != null) {
    json[r'logoDark'] = this.logoDark;
  } else {
    json[r'logoDark'] = null;
  }
  if (this.masterPassword != null) {
    json[r'masterPassword'] = this.masterPassword;
  } else {
    json[r'masterPassword'] = null;
  }
  if (this.masterVerificationCode != null) {
    json[r'masterVerificationCode'] = this.masterVerificationCode;
  } else {
    json[r'masterVerificationCode'] = null;
  }
    json[r'mfaItems'] = this.mfaItems;
  if (this.mfaRememberInHours != null) {
    json[r'mfaRememberInHours'] = this.mfaRememberInHours;
  } else {
    json[r'mfaRememberInHours'] = null;
  }
  if (this.name != null) {
    json[r'name'] = this.name;
  } else {
    json[r'name'] = null;
  }
    json[r'navItems'] = this.navItems;
  if (this.orgBalance != null) {
    json[r'orgBalance'] = this.orgBalance;
  } else {
    json[r'orgBalance'] = null;
  }
  if (this.owner != null) {
    json[r'owner'] = this.owner;
  } else {
    json[r'owner'] = null;
  }
  if (this.passwordExpireDays != null) {
    json[r'passwordExpireDays'] = this.passwordExpireDays;
  } else {
    json[r'passwordExpireDays'] = null;
  }
  if (this.passwordObfuscatorKey != null) {
    json[r'passwordObfuscatorKey'] = this.passwordObfuscatorKey;
  } else {
    json[r'passwordObfuscatorKey'] = null;
  }
  if (this.passwordObfuscatorType != null) {
    json[r'passwordObfuscatorType'] = this.passwordObfuscatorType;
  } else {
    json[r'passwordObfuscatorType'] = null;
  }
    json[r'passwordOptions'] = this.passwordOptions;
  if (this.passwordSalt != null) {
    json[r'passwordSalt'] = this.passwordSalt;
  } else {
    json[r'passwordSalt'] = null;
  }
  if (this.passwordType != null) {
    json[r'passwordType'] = this.passwordType;
  } else {
    json[r'passwordType'] = null;
  }
    json[r'tags'] = this.tags;
  if (this.themeData != null) {
    json[r'themeData'] = this.themeData;
  } else {
    json[r'themeData'] = null;
  }
  if (this.updatedAt != null) {
    json[r'updatedAt'] = this.updatedAt!.toUtc().toIso8601String();
  } else {
    json[r'updatedAt'] = null;
  }
  if (this.useEmailAsUsername != null) {
    json[r'useEmailAsUsername'] = this.useEmailAsUsername;
  } else {
    json[r'useEmailAsUsername'] = null;
  }
  if (this.usePermanentAvatar != null) {
    json[r'usePermanentAvatar'] = this.usePermanentAvatar;
  } else {
    json[r'usePermanentAvatar'] = null;
  }
  if (this.userBalance != null) {
    json[r'userBalance'] = this.userBalance;
  } else {
    json[r'userBalance'] = null;
  }
    json[r'userNavItems'] = this.userNavItems;
    json[r'userTypes'] = this.userTypes;
  if (this.websiteUrl != null) {
    json[r'websiteUrl'] = this.websiteUrl;
  } else {
    json[r'websiteUrl'] = null;
  }
    json[r'widgetItems'] = this.widgetItems;
  return json;
}