toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.id != null) {
json[r'id'] = this.id;
} else {
json[r'id'] = null;
}
if (this.isRespondedTo != null) {
json[r'is_responded_to'] = this.isRespondedTo;
} else {
json[r'is_responded_to'] = null;
}
if (this.acceptedAt != null) {
json[r'accepted_at'] = this.acceptedAt!.toUtc().toIso8601String();
} else {
json[r'accepted_at'] = null;
}
if (this.rejectedAt != null) {
json[r'rejected_at'] = this.rejectedAt!.toUtc().toIso8601String();
} else {
json[r'rejected_at'] = null;
}
if (this.chat != null) {
json[r'chat'] = this.chat;
} else {
json[r'chat'] = null;
}
return json;
}