ResourcePolicySnapshotSchedulePolicyRetentionPolicyComputeBeta.fromMap constructor

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

Implementation

factory ResourcePolicySnapshotSchedulePolicyRetentionPolicyComputeBeta.fromMap(Map<String, dynamic> map) {
  return ResourcePolicySnapshotSchedulePolicyRetentionPolicyComputeBeta(
    maxRetentionDays: (() { final guardedValue = map['maxRetentionDays']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as int); })(),
    onSourceDiskDelete: (() { final guardedValue = map['onSourceDiskDelete']; if (guardedValue == null) return null; return pulumi.Input.fromValue(ResourcePolicySnapshotSchedulePolicyRetentionPolicyOnSourceDiskDeleteComputeBeta.fromValue(guardedValue as String)); })(),
  );
}