toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.externalId != null) {
    json[r'external_id'] = this.externalId;
  } else {
    json[r'external_id'] = null;
  }
  if (this.firstName != null) {
    json[r'first_name'] = this.firstName;
  } else {
    json[r'first_name'] = null;
  }
  if (this.lastName != null) {
    json[r'last_name'] = this.lastName;
  } else {
    json[r'last_name'] = null;
  }
  if (this.primaryEmailAddressId != null) {
    json[r'primary_email_address_id'] = this.primaryEmailAddressId;
  } else {
    json[r'primary_email_address_id'] = null;
  }
  if (this.notifyPrimaryEmailAddressChanged != null) {
    json[r'notify_primary_email_address_changed'] =
        this.notifyPrimaryEmailAddressChanged;
  } else {
    json[r'notify_primary_email_address_changed'] = null;
  }
  if (this.primaryPhoneNumberId != null) {
    json[r'primary_phone_number_id'] = this.primaryPhoneNumberId;
  } else {
    json[r'primary_phone_number_id'] = null;
  }
  if (this.primaryWeb3WalletId != null) {
    json[r'primary_web3_wallet_id'] = this.primaryWeb3WalletId;
  } else {
    json[r'primary_web3_wallet_id'] = null;
  }
  if (this.username != null) {
    json[r'username'] = this.username;
  } else {
    json[r'username'] = null;
  }
  if (this.profileImageId != null) {
    json[r'profile_image_id'] = this.profileImageId;
  } else {
    json[r'profile_image_id'] = null;
  }
  if (this.password != null) {
    json[r'password'] = this.password;
  } else {
    json[r'password'] = null;
  }
  if (this.passwordDigest != null) {
    json[r'password_digest'] = this.passwordDigest;
  } else {
    json[r'password_digest'] = null;
  }
  if (this.passwordHasher != null) {
    json[r'password_hasher'] = this.passwordHasher;
  } else {
    json[r'password_hasher'] = null;
  }
  if (this.skipPasswordChecks != null) {
    json[r'skip_password_checks'] = this.skipPasswordChecks;
  } else {
    json[r'skip_password_checks'] = null;
  }
  if (this.signOutOfOtherSessions != null) {
    json[r'sign_out_of_other_sessions'] = this.signOutOfOtherSessions;
  } else {
    json[r'sign_out_of_other_sessions'] = null;
  }
  if (this.totpSecret != null) {
    json[r'totp_secret'] = this.totpSecret;
  } else {
    json[r'totp_secret'] = null;
  }
  json[r'backup_codes'] = this.backupCodes;
  if (this.publicMetadata != null) {
    json[r'public_metadata'] = this.publicMetadata;
  } else {
    json[r'public_metadata'] = null;
  }
  if (this.privateMetadata != null) {
    json[r'private_metadata'] = this.privateMetadata;
  } else {
    json[r'private_metadata'] = null;
  }
  if (this.unsafeMetadata != null) {
    json[r'unsafe_metadata'] = this.unsafeMetadata;
  } else {
    json[r'unsafe_metadata'] = null;
  }
  if (this.deleteSelfEnabled != null) {
    json[r'delete_self_enabled'] = this.deleteSelfEnabled;
  } else {
    json[r'delete_self_enabled'] = null;
  }
  if (this.createOrganizationEnabled != null) {
    json[r'create_organization_enabled'] = this.createOrganizationEnabled;
  } else {
    json[r'create_organization_enabled'] = null;
  }
  if (this.legalAcceptedAt != null) {
    json[r'legal_accepted_at'] = this.legalAcceptedAt;
  } else {
    json[r'legal_accepted_at'] = null;
  }
  if (this.skipLegalChecks != null) {
    json[r'skip_legal_checks'] = this.skipLegalChecks;
  } else {
    json[r'skip_legal_checks'] = null;
  }
  if (this.createOrganizationsLimit != null) {
    json[r'create_organizations_limit'] = this.createOrganizationsLimit;
  } else {
    json[r'create_organizations_limit'] = null;
  }
  if (this.createdAt != null) {
    json[r'created_at'] = this.createdAt;
  } else {
    json[r'created_at'] = null;
  }
  return json;
}