toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'error'] = this.error;
if (this.code != null) {
json[r'code'] = this.code;
} else {
json[r'code'] = null;
}
json[r'requiresPassword'] = this.requiresPassword;
if (this.invalidPassword != null) {
json[r'invalidPassword'] = this.invalidPassword;
} else {
json[r'invalidPassword'] = null;
}
return json;
}