toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'loc'] = this.loc;
json[r'msg'] = this.msg;
json[r'type'] = this.type;
if (this.input != null) {
json[r'input'] = this.input;
} else {
json[r'input'] = null;
}
if (this.ctx != null) {
json[r'ctx'] = this.ctx;
} else {
json[r'ctx'] = null;
}
return json;
}