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': '6abd9782',
    '\$name': 'DecryptedMessageMediaDocument143',
    'thumb': thumb,
    'thumbW': thumbW,
    'thumbH': thumbH,
    'mimeType': mimeType,
    'size': size,
    'key': key,
    'iv': iv,
    'attributes': attributes,
    'caption': caption,
  };

  // Finished toJson.
  return returnValue;
}