toJson method

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

Converts this object to TDLib JSON.

Implementation

@override
Map<String, dynamic> toJson() => {
      '@type': CONSTRUCTOR,
      'emoji': emoji,
      'title': title,
      'is_active': isActive,
      'static_icon': staticIcon.toJson(),
      'appear_animation': appearAnimation.toJson(),
      'select_animation': selectAnimation.toJson(),
      'activate_animation': activateAnimation.toJson(),
      'effect_animation': effectAnimation.toJson(),
      'around_animation': aroundAnimation?.toJson(),
      'center_animation': centerAnimation?.toJson(),
    };