toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() {
  return <String, dynamic>{
    'createTime': ?createTime,
    'deletionPolicy': ?deletionPolicy,
    'displayName': ?displayName,
    'effectiveLabels': ?effectiveLabels,
    'encryptionSpec': ?pulumi.Input.mapOptionalInputValue<AiPersistentResourceEncryptionSpec, Map<String, dynamic>>(encryptionSpec, (value) => value.toMap()),
    'errors': ?pulumi.Input.mapOptionalInputValue<List<AiPersistentResourceError>, List<Map<String, dynamic>>>(errors, (value) => pulumi.Input.encodeList<AiPersistentResourceError, Map<String, dynamic>>(value, (value) => value.toMap())),
    'labels': ?labels,
    'location': ?location,
    'name': ?name,
    'network': ?network,
    'project': ?project,
    'pscInterfaceConfig': ?pulumi.Input.mapOptionalInputValue<AiPersistentResourcePscInterfaceConfig, Map<String, dynamic>>(pscInterfaceConfig, (value) => value.toMap()),
    'pulumiLabels': ?pulumiLabels,
    'reservedIpRanges': ?reservedIpRanges,
    'resourcePools': ?pulumi.Input.mapOptionalInputValue<List<AiPersistentResourceResourcePool>, List<Map<String, dynamic>>>(resourcePools, (value) => pulumi.Input.encodeList<AiPersistentResourceResourcePool, Map<String, dynamic>>(value, (value) => value.toMap())),
    'resourceRuntimeSpec': ?pulumi.Input.mapOptionalInputValue<AiPersistentResourceResourceRuntimeSpec, Map<String, dynamic>>(resourceRuntimeSpec, (value) => value.toMap()),
    'resourceRuntimes': ?pulumi.Input.mapOptionalInputValue<List<AiPersistentResourceResourceRuntime>, List<Map<String, dynamic>>>(resourceRuntimes, (value) => pulumi.Input.encodeList<AiPersistentResourceResourceRuntime, Map<String, dynamic>>(value, (value) => value.toMap())),
    'satisfiesPzi': ?satisfiesPzi,
    'satisfiesPzs': ?satisfiesPzs,
    'startTime': ?startTime,
    'state': ?state,
    'updateTime': ?updateTime,
  };
}