toJson method
Converts an object to JSON.
Implementation
@override
Map<String, dynamic> toJson() {
final returnValue = <String, dynamic>{
'\$hash': '2dd14edc',
'\$name': 'StickerSet',
'flags': flags,
'archived': archived,
'official': official,
'masks': masks,
'emojis': emojis,
'textColor': textColor,
'channelEmojiStatus': channelEmojiStatus,
'creator': creator,
'installedDate': installedDate?.toIso8601String(),
'id': id,
'accessHash': accessHash,
'title': title,
'shortName': shortName,
'thumbs': thumbs,
'thumbDcId': thumbDcId,
'thumbVersion': thumbVersion,
'thumbDocumentId': thumbDocumentId,
'count': count,
'hash': hash,
};
// Finished toJson.
return returnValue;
}