fromJson static method

BusinessBotManageBar? fromJson(
  1. Map<String, dynamic>? json
)

Implementation

static BusinessBotManageBar? fromJson(Map<String, dynamic>? json) {
  if (json == null) {
    return null;
  }

  return BusinessBotManageBar(
    botUserId: (json['bot_user_id'] as int?) ?? 0,
    manageUrl: (json['manage_url'] as String?) ?? '',
    isBotPaused: (json['is_bot_paused'] as bool?) ?? false,
    canBotReply: (json['can_bot_reply'] as bool?) ?? false,
  );
}