toJson method
Implementation
Map<String, dynamic> toJson() {
final _json = <String, dynamic>{};
if (id != null) {
_json[r'id'] = id;
}
if (createAt != null) {
_json[r'create_at'] = createAt;
}
if (updateAt != null) {
_json[r'update_at'] = updateAt;
}
if (deleteAt != null) {
_json[r'delete_at'] = deleteAt;
}
if (username != null) {
_json[r'username'] = username;
}
if (firstName != null) {
_json[r'first_name'] = firstName;
}
if (lastName != null) {
_json[r'last_name'] = lastName;
}
if (nickname != null) {
_json[r'nickname'] = nickname;
}
if (email != null) {
_json[r'email'] = email;
}
if (emailVerified != null) {
_json[r'email_verified'] = emailVerified;
}
if (authService != null) {
_json[r'auth_service'] = authService;
}
if (roles != null) {
_json[r'roles'] = roles;
}
if (locale != null) {
_json[r'locale'] = locale;
}
if (notifyProps != null) {
_json[r'notify_props'] = notifyProps;
}
if (props != null) {
_json[r'props'] = props;
}
if (lastPasswordUpdate != null) {
_json[r'last_password_update'] = lastPasswordUpdate;
}
if (lastPictureUpdate != null) {
_json[r'last_picture_update'] = lastPictureUpdate;
}
if (failedAttempts != null) {
_json[r'failed_attempts'] = failedAttempts;
}
if (mfaActive != null) {
_json[r'mfa_active'] = mfaActive;
}
if (timezone != null) {
_json[r'timezone'] = timezone;
}
if (termsOfServiceId != null) {
_json[r'terms_of_service_id'] = termsOfServiceId;
}
if (termsOfServiceCreateAt != null) {
_json[r'terms_of_service_create_at'] = termsOfServiceCreateAt;
}
return _json;
}