toJson method

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

Object to Map serializer

Implementation

@override
Map<String, dynamic> toJson() {
  return {
    '@type': 'animation',
    if (extra != null) '@extra': extra,
    'duration': duration,
    'width': width,
    'height': height,
    'file_name': file_name,
    'mime_type': mime_type,
    'has_stickers': has_stickers,
    'minithumbnail': minithumbnail,
    'thumbnail': thumbnail,
    'animation': animation
  };
}