toJson method
Converts an object to JSON.
Implementation
@override
Map<String, dynamic> toJson() {
final returnValue = <String, dynamic>{
'\$hash': '8ba403e4',
'\$name': 'RequestedPeerChannel',
'flags': flags,
'channelId': channelId,
'title': title,
'username': username,
'photo': photo,
};
// Finished toJson.
return returnValue;
}