ReferenceListArgs.fromMap constructor
ReferenceListArgs.fromMap(
- Map<String, dynamic> map
)
Implementation
factory ReferenceListArgs.fromMap(Map<String, dynamic> map) {
return ReferenceListArgs(
description: pulumi.Input.fromValue(map['description'] as String),
entries: pulumi.Input.fromValue(pulumi.Input.decodeList<ReferenceListEntry>(map['entries']!, (value) => ReferenceListEntry.fromMap((value as Map).cast<String, dynamic>()))),
instance: pulumi.Input.fromValue(map['instance'] as String),
location: pulumi.Input.fromValue(map['location'] as String),
project: (() { final guardedValue = map['project']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as String); })(),
referenceListId: pulumi.Input.fromValue(map['referenceListId'] as String),
scopeInfos: (() { final guardedValue = map['scopeInfos']; if (guardedValue == null) return null; return pulumi.Input.fromValue(pulumi.Input.decodeList<ReferenceListScopeInfo>(guardedValue, (value) => ReferenceListScopeInfo.fromMap((value as Map).cast<String, dynamic>()))); })(),
syntaxType: pulumi.Input.fromValue(map['syntaxType'] as String),
);
}