toJson method

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

Object to Map serializer

Implementation

@override
Map<String, dynamic> toJson() {
  return {
    '@type': 'animatedEmoji',
    if (extra != null) '@extra': extra,
    'sticker': sticker,
    'sticker_width': sticker_width,
    'sticker_height': sticker_height,
    'fitzpatrick_type': fitzpatrick_type,
    'sound': sound
  };
}