QueryLoggingConfigurationState.fromMap constructor
QueryLoggingConfigurationState.fromMap(
- Map<String, dynamic> map
)
Implementation
factory QueryLoggingConfigurationState.fromMap(Map<String, dynamic> map) {
return QueryLoggingConfigurationState(
destinations: (() { final guardedValue = map['destinations']; if (guardedValue == null) return null; return pulumi.Input.fromValue(pulumi.Input.decodeList<QueryLoggingConfigurationDestination>(guardedValue, (value) => QueryLoggingConfigurationDestination.fromMap((value as Map).cast<String, dynamic>()))); })(),
region: (() { final guardedValue = map['region']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as String); })(),
timeouts: (() { final guardedValue = map['timeouts']; if (guardedValue == null) return null; return pulumi.Input.fromValue(QueryLoggingConfigurationTimeouts.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
workspaceId: (() { final guardedValue = map['workspaceId']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as String); })(),
);
}