toJson method

  1. @override
Map<String, dynamic> toJson()
override

Converts this object to TDLib JSON.

Implementation

@override
Map<String, dynamic> toJson() => {
  '@type': CONSTRUCTOR,
  'path': path,
  'can_be_downloaded': canBeDownloaded,
  'can_be_deleted': canBeDeleted,
  'is_downloading_active': isDownloadingActive,
  'is_downloading_completed': isDownloadingCompleted,
  'download_offset': downloadOffset,
  'downloaded_prefix_size': downloadedPrefixSize,
  'downloaded_size': downloadedSize,
};