toJson method

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

Object to Map serializer

Implementation

@override
Map<String, dynamic> toJson() {
  return {
    '@type': 'emojiReaction',
    if (extra != null) '@extra': extra,
    'emoji': emoji,
    'title': title,
    'is_active': is_active,
    'static_icon': static_icon,
    'appear_animation': appear_animation,
    'select_animation': select_animation,
    'activate_animation': activate_animation,
    'effect_animation': effect_animation,
    'around_animation': around_animation,
    'center_animation': center_animation
  };
}