LoggerDefinitionVersion.fromJson constructor

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

Implementation

factory LoggerDefinitionVersion.fromJson(Map<String, dynamic> json) {
  return LoggerDefinitionVersion(
    loggers: (json['Loggers'] as List?)
        ?.whereNotNull()
        .map((e) => Logger.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}