toJson method
Converts an object to JSON.
Implementation
@override
Map<String, dynamic> toJson() {
final returnValue = <String, dynamic>{
"\$": "0xfa95b0dd",
"id": id,
"accessHash": accessHash,
"date": date.toIso8601String(),
"mimeType": mimeType,
"size": size,
"thumb": thumb,
"dcId": dcId,
"attributes": attributes,
};
// Finished toJson.
return returnValue;
}