toJson method
Implementation
Map<String, Object?> toJson() {
var number = this.number;
var message = this.message;
final json = <String, Object?>{};
if (number != null) {
json[r'number'] = number;
}
if (message != null) {
json[r'message'] = message;
}
return json;
}