toJson method
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;
}
json[r'email_address'] = this.emailAddress;
json[r'phone_number'] = this.phoneNumber;
json[r'web3_wallet'] = this.web3Wallet;
if (this.username != null) {
json[r'username'] = this.username;
} else {
json[r'username'] = 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.skipPasswordRequirement != null) {
json[r'skip_password_requirement'] = this.skipPasswordRequirement;
} else {
json[r'skip_password_requirement'] = null;
}
if (this.totpSecret != null) {
json[r'totp_secret'] = this.totpSecret;
} else {
json[r'totp_secret'] = null;
}
json[r'backup_codes'] = this.backupCodes;
json[r'public_metadata'] = this.publicMetadata;
json[r'private_metadata'] = this.privateMetadata;
json[r'unsafe_metadata'] = this.unsafeMetadata;
if (this.deleteSelfEnabled != null) {
json[r'delete_self_enabled'] = this.deleteSelfEnabled;
} else {
json[r'delete_self_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.createOrganizationEnabled != null) {
json[r'create_organization_enabled'] = this.createOrganizationEnabled;
} else {
json[r'create_organization_enabled'] = 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;
}