toJson method
Converts an object to JSON.
Implementation
@override
Map<String, dynamic> toJson() {
final returnValue = <String, dynamic>{
'\$hash': '8fd4c4d8',
'\$name': 'Document',
'flags': flags,
'id': id,
'accessHash': accessHash,
'fileReference': fileReference,
'date': date.toIso8601String(),
'mimeType': mimeType,
'size': size,
'thumbs': thumbs,
'videoThumbs': videoThumbs,
'dcId': dcId,
'attributes': attributes,
};
// Finished toJson.
return returnValue;
}