toJson method
Converts an object to JSON.
Implementation
@override
Map<String, dynamic> toJson() {
final returnValue = <String, dynamic>{
'\$hash': '14b0ed0c',
'\$name': 'PhoneCallRequested',
'flags': flags,
'video': video,
'id': id,
'accessHash': accessHash,
'date': date.toIso8601String(),
'adminId': adminId,
'participantId': participantId,
'gAHash': gAHash,
'protocol': protocol,
};
// Finished toJson.
return returnValue;
}