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,
  'gift_id': giftId.toString(),
  'order': order.toJson(),
  'for_crafting': forCrafting,
  'for_stars': forStars,
  'attributes': [for (final e in attributes) e.toJson()],
  'offset': offset,
  'limit': limit,
  '@extra': ?extra,
};