fromJson static method

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

Implementation

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

  return BotSettingCanCommunicateWithBots(
    canCommunicateWithBots:
        (json['can_communicate_with_bots'] as bool?) ?? false,
  );
}