toJson method

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

Converts an object to JSON.

Implementation

@override
Map<String, dynamic> toJson() {
  final returnValue = <String, dynamic>{
    "\$": "0x2dd14edc",
    "flags": flags,
    "archived": archived,
    "official": official,
    "masks": masks,
    "animated": animated,
    "videos": videos,
    "emojis": emojis,
    "textColor": textColor,
    "channelEmojiStatus": channelEmojiStatus,
    "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;
}