toJson method
Converts an object to JSON.
Implementation
@override
Map<String, dynamic> toJson() {
final returnValue = <String, dynamic>{
'\$hash': '52d8ccd9',
'\$name': 'MessageMediaDocument',
'flags': flags,
'nopremium': nopremium,
'spoiler': spoiler,
'video': video,
'round': round,
'voice': voice,
'document': document,
'altDocuments': altDocuments,
'videoCover': videoCover,
'videoTimestamp': videoTimestamp,
'ttlSeconds': ttlSeconds,
};
// Finished toJson.
return returnValue;
}