toJson method

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

Converts an object to JSON.

Implementation

@override
Map<String, dynamic> toJson() {
  final returnValue = <String, dynamic>{
    "\$": "0x5b38c6c1",
    "flags": flags,
    "nosoundVideo": nosoundVideo,
    "forceFile": forceFile,
    "spoiler": spoiler,
    "file": file,
    "thumb": thumb,
    "mimeType": mimeType,
    "attributes": attributes,
    "stickers": stickers,
    "ttlSeconds": ttlSeconds,
  };

  // Finished toJson.
  return returnValue;
}