LoggingConfiguration.fromJson constructor

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

Implementation

factory LoggingConfiguration.fromJson(Map<String, dynamic> json) {
  return LoggingConfiguration(
    logDestinationConfigs: (json['LogDestinationConfigs'] as List)
        .whereNotNull()
        .map((e) => e as String)
        .toList(),
    resourceArn: json['ResourceArn'] as String,
    managedByFirewallManager: json['ManagedByFirewallManager'] as bool?,
    redactedFields: (json['RedactedFields'] as List?)
        ?.whereNotNull()
        .map((e) => FieldToMatch.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}