LogConfiguration.fromJson constructor

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

Implementation

factory LogConfiguration.fromJson(Map<String, dynamic> json) {
  return LogConfiguration(
    logDriver: (json['logDriver'] as String).toLogDriver(),
    options: (json['options'] as Map<String, dynamic>?)
        ?.map((k, e) => MapEntry(k, e as String)),
    secretOptions: (json['secretOptions'] as List?)
        ?.whereNotNull()
        .map((e) => Secret.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}