toJson method

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

Implementation

@override
Map<String, dynamic> toJson([dynamic extra]) {
  return {
    "@type": CONSTRUCTOR,
    "bot_user_id": botUserId,
    "supports_self_chat": supportsSelfChat,
    "supports_user_chats": supportsUserChats,
    "supports_bot_chats": supportsBotChats,
    "supports_group_chats": supportsGroupChats,
    "supports_channel_chats": supportsChannelChats,
    "supports_settings": supportsSettings,
    "request_write_access": requestWriteAccess,
    "name": name,
    "name_color": nameColor?.toJson(),
    "default_icon": defaultIcon?.toJson(),
    "ios_static_icon": iosStaticIcon?.toJson(),
    "ios_animated_icon": iosAnimatedIcon?.toJson(),
    "android_icon": androidIcon?.toJson(),
    "macos_icon": macosIcon?.toJson(),
    "icon_color": iconColor?.toJson(),
    "web_app_placeholder": webAppPlaceholder?.toJson(),
  };
}