AppConfig.fromJson constructor

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

Implementation

factory AppConfig.fromJson(Map<String, dynamic> json) => AppConfig(
    maxClients: (json['MaxClients'] as num?)?.toInt() ?? 0,
    disableWebRtc: (json['DisableWebRtc'] as bool?) ?? false,
    disableUdp: (json['DisableUdp'] as bool?) ?? false,
);