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