toJson method

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

Converts this request to TDLib JSON, tagged with extra if given.

Implementation

@override
Map<String, dynamic> toJson([dynamic extra]) => {
  '@type': CONSTRUCTOR,
  'business_connection_id': businessConnectionId,
  'owner_id': ownerId.toJson(),
  'collection_id': collectionId,
  'exclude_unsaved': excludeUnsaved,
  'exclude_saved': excludeSaved,
  'exclude_unlimited': excludeUnlimited,
  'exclude_upgradable': excludeUpgradable,
  'exclude_non_upgradable': excludeNonUpgradable,
  'exclude_upgraded': excludeUpgraded,
  'exclude_without_colors': excludeWithoutColors,
  'exclude_hosted': excludeHosted,
  'sort_by_price': sortByPrice,
  'offset': offset,
  'limit': limit,
  '@extra': ?extra,
};