fromJson static method

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

Implementation

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

  return BotSettingIsGuard(
    isGuard: (json['is_guard'] as bool?) ?? false,
  );
}