GetTopicResult.fromMap constructor
GetTopicResult.fromMap(
- Map<String, dynamic> map
)
Implementation
factory GetTopicResult.fromMap(Map<String, dynamic> map) {
return GetTopicResult(
deletionPolicy: (() { final guardedValue = map['deletionPolicy']; if (guardedValue == null) return null; return guardedValue as String; })(),
effectiveLabels: (() { final guardedValue = map['effectiveLabels']; if (guardedValue == null) return null; return (guardedValue as Map).cast<String, String>(); })(),
id: (() { final guardedValue = map['id']; if (guardedValue == null) return null; return guardedValue as String; })(),
ingestionDataSourceSettings: (() { final guardedValue = map['ingestionDataSourceSettings']; if (guardedValue == null) return null; return pulumi.Input.decodeList<GetTopicIngestionDataSourceSetting>(guardedValue, (value) => GetTopicIngestionDataSourceSetting.fromMap((value as Map).cast<String, dynamic>())); })(),
kmsKeyName: (() { final guardedValue = map['kmsKeyName']; if (guardedValue == null) return null; return guardedValue as String; })(),
labels: (() { final guardedValue = map['labels']; if (guardedValue == null) return null; return (guardedValue as Map).cast<String, String>(); })(),
messageRetentionDuration: (() { final guardedValue = map['messageRetentionDuration']; if (guardedValue == null) return null; return guardedValue as String; })(),
messageStoragePolicies: (() { final guardedValue = map['messageStoragePolicies']; if (guardedValue == null) return null; return pulumi.Input.decodeList<GetTopicMessageStoragePolicy>(guardedValue, (value) => GetTopicMessageStoragePolicy.fromMap((value as Map).cast<String, dynamic>())); })(),
messageTransforms: (() { final guardedValue = map['messageTransforms']; if (guardedValue == null) return null; return pulumi.Input.decodeList<GetTopicMessageTransform>(guardedValue, (value) => GetTopicMessageTransform.fromMap((value as Map).cast<String, dynamic>())); })(),
name: (() { final guardedValue = map['name']; if (guardedValue == null) return null; return guardedValue as String; })(),
project: (() { final guardedValue = map['project']; if (guardedValue == null) return null; return guardedValue as String; })(),
pulumiLabels: (() { final guardedValue = map['pulumiLabels']; if (guardedValue == null) return null; return (guardedValue as Map).cast<String, String>(); })(),
schemaSettings: (() { final guardedValue = map['schemaSettings']; if (guardedValue == null) return null; return pulumi.Input.decodeList<GetTopicSchemaSetting>(guardedValue, (value) => GetTopicSchemaSetting.fromMap((value as Map).cast<String, dynamic>())); })(),
tags: (() { final guardedValue = map['tags']; if (guardedValue == null) return null; return (guardedValue as Map).cast<String, String>(); })(),
);
}