toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'email'] = this.email;
json[r'verification_code'] = this.verificationCode;
json[r'password'] = this.password;
json[r'first_name'] = this.firstName;
json[r'phone_number'] = this.phoneNumber;
if (this.isPhoneConfirmed != null) {
json[r'is_phone_confirmed'] = this.isPhoneConfirmed;
} else {
json[r'is_phone_confirmed'] = null;
}
json[r'last_name'] = this.lastName;
if (this.token != null) {
json[r'token'] = this.token;
} else {
json[r'token'] = null;
}
if (this.user != null) {
json[r'user'] = this.user;
} else {
json[r'user'] = null;
}
if (this.referer != null) {
json[r'referer'] = this.referer;
} else {
json[r'referer'] = null;
}
return json;
}