ConfigResponse.fromJson constructor

ConfigResponse.fromJson(
  1. Json json
)

Implementation

factory ConfigResponse.fromJson(Json json) {
  return ConfigResponse(
    additionalProperties: json['additionalProperties'] ?? {},
    eventLoggingDisabled: json['eventLoggingDisabled'] ?? false,
    exceptionReportDisabled: json['exceptionReportDisabled'] ?? false,
    appenders: (json['appenders'] as List<dynamic>?)
            ?.map((item) => AppenderResponse.fromJson(item))
            .toList() ??
        [],
    loggers: (json['loggers'] as List<dynamic>?)
            ?.map((item) => LoggerResponse.fromJson(item))
            .toList() ??
        [],
    root: json['root'] != null ? RootResponse.fromJson(json['root']) : null,
  );
}