toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.status != null) {
json[r'status'] = this.status;
} else {
json[r'status'] = null;
}
if (this.errorMsg != null) {
json[r'error_msg'] = this.errorMsg;
} else {
json[r'error_msg'] = null;
}
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;
}
return json;
}