HubContentReferenceState.fromMap constructor

HubContentReferenceState.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory HubContentReferenceState.fromMap(Map<String, dynamic> map) {
  return HubContentReferenceState(
    hubArn: (() { final guardedValue = map['hubArn']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as String); })(),
    hubContentArn: (() { final guardedValue = map['hubContentArn']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as String); })(),
    hubContentName: (() { final guardedValue = map['hubContentName']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as String); })(),
    hubContentStatus: (() { final guardedValue = map['hubContentStatus']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as String); })(),
    hubContentVersion: (() { final guardedValue = map['hubContentVersion']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as String); })(),
    hubName: (() { final guardedValue = map['hubName']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as String); })(),
    minVersion: (() { final guardedValue = map['minVersion']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as String); })(),
    region: (() { final guardedValue = map['region']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as String); })(),
    sagemakerPublicHubContentArn: (() { final guardedValue = map['sagemakerPublicHubContentArn']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as String); })(),
    tags: (() { final guardedValue = map['tags']; if (guardedValue == null) return null; return pulumi.Input.fromValue((guardedValue as Map).cast<String, String>()); })(),
    tagsAll: (() { final guardedValue = map['tagsAll']; if (guardedValue == null) return null; return pulumi.Input.fromValue((guardedValue as Map).cast<String, String>()); })(),
    timeouts: (() { final guardedValue = map['timeouts']; if (guardedValue == null) return null; return pulumi.Input.fromValue(HubContentReferenceTimeouts.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
  );
}