toJson method
Converts an object to JSON.
Implementation
@override
Map<String, dynamic> toJson() {
final returnValue = <String, dynamic>{
'\$hash': 'd83466f3',
'\$name': 'InputPhotoLegacyFileLocation',
'id': id,
'accessHash': accessHash,
'fileReference': fileReference,
'volumeId': volumeId,
'localId': localId,
'secret': secret,
};
// Finished toJson.
return returnValue;
}