toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.id != null) {
json[r'id'] = this.id;
} else {
json[r'id'] = null;
}
if (this.createdTimestamp != null) {
json[r'createdTimestamp'] = this.createdTimestamp;
} else {
json[r'createdTimestamp'] = null;
}
if (this.username != null) {
json[r'username'] = this.username;
} else {
json[r'username'] = null;
}
if (this.enabled != null) {
json[r'enabled'] = this.enabled;
} else {
json[r'enabled'] = null;
}
if (this.totp != null) {
json[r'totp'] = this.totp;
} else {
json[r'totp'] = null;
}
if (this.emailVerified != null) {
json[r'emailVerified'] = this.emailVerified;
} else {
json[r'emailVerified'] = null;
}
json[r'requiredActions'] = this.requiredActions;
if (this.attributes != null) {
json[r'attributes'] = this.attributes;
} else {
json[r'attributes'] = null;
}
json[r'roles'] = this.roles;
if (this.email != null) {
json[r'email'] = this.email;
} else {
json[r'email'] = null;
}
if (this.firstName != null) {
json[r'firstName'] = this.firstName;
} else {
json[r'firstName'] = null;
}
if (this.lastName != null) {
json[r'lastName'] = this.lastName;
} else {
json[r'lastName'] = null;
}
json[r'notificationTokens'] = this.notificationTokens;
return json;
}