toJson method
Converts an object to JSON.
Implementation
@override
Map<String, dynamic> toJson() {
final returnValue = <String, dynamic>{
'\$hash': '50ca4de1',
'\$name': 'PhoneCallDiscarded',
'flags': flags,
'needRating': needRating,
'needDebug': needDebug,
'video': video,
'id': id,
'reason': reason,
'duration': duration,
};
// Finished toJson.
return returnValue;
}