LogTargetConfiguration.fromJson constructor

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

Implementation

factory LogTargetConfiguration.fromJson(Map<String, dynamic> json) {
  return LogTargetConfiguration(
    logLevel: (json['logLevel'] as String?)?.toLogLevel(),
    logTarget: json['logTarget'] != null
        ? LogTarget.fromJson(json['logTarget'] as Map<String, dynamic>)
        : null,
  );
}