LoggingConfiguration.fromJson constructor

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

Implementation

factory LoggingConfiguration.fromJson(Map<String, dynamic> json) {
  return LoggingConfiguration(
    destinations: (json['destinations'] as List?)
        ?.whereNotNull()
        .map((e) => LogDestination.fromJson(e as Map<String, dynamic>))
        .toList(),
    includeExecutionData: json['includeExecutionData'] as bool?,
    level: (json['level'] as String?)?.toLogLevel(),
  );
}