toJson method
Converts this object to TDLib JSON.
Implementation
@override
Map<String, dynamic> toJson() => {
'@type': CONSTRUCTOR,
'collection_address': collectionAddress,
'address': address,
'owner_address': ownerAddress,
'index': index,
'name': name,
'description': description,
'image': image?.toJson(),
'thumbnail': thumbnail?.toJson(),
'content': content?.toJson(),
'sticker': sticker?.toJson(),
'attributes': [for (final e in attributes) e.toJson()],
'extra': extraValue?.toJson(),
'gift': gift?.toJson(),
};