toJson method

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

Converts an object to JSON.

Implementation

@override
Map<String, dynamic> toJson() {
  final returnValue = <String, dynamic>{
    '\$hash': '037c9330',
    '\$name': 'InputMediaUploadedDocument',
    'flags': flags,
    'nosoundVideo': nosoundVideo,
    'forceFile': forceFile,
    'spoiler': spoiler,
    'file': file,
    'thumb': thumb,
    'mimeType': mimeType,
    'attributes': attributes,
    'stickers': stickers,
    'videoCover': videoCover,
    'videoTimestamp': videoTimestamp,
    'ttlSeconds': ttlSeconds,
  };

  // Finished toJson.
  return returnValue;
}