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.email != null) {
json[r'email'] = this.email;
} else {
json[r'email'] = 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.emailVerified != null) {
json[r'email_verified'] = this.emailVerified;
} else {
json[r'email_verified'] = null;
}
if (this.lastLoginAt != null) {
json[r'last_login_at'] = this.lastLoginAt!.toUtc().toIso8601String();
} else {
json[r'last_login_at'] = null;
}
if (this.createdAt != null) {
json[r'created_at'] = this.createdAt!.toUtc().toIso8601String();
} else {
json[r'created_at'] = null;
}
if (this.updatedAt != null) {
json[r'updated_at'] = this.updatedAt!.toUtc().toIso8601String();
} else {
json[r'updated_at'] = null;
}
return json;
}