InstanceFromMachineImageSchedulingPreemptionNoticeDuration.fromMap constructor
InstanceFromMachineImageSchedulingPreemptionNoticeDuration.fromMap(
- Map<String, dynamic> map
)
Implementation
factory InstanceFromMachineImageSchedulingPreemptionNoticeDuration.fromMap(Map<String, dynamic> map) {
return InstanceFromMachineImageSchedulingPreemptionNoticeDuration(
nanos: (() { final guardedValue = map['nanos']; if (guardedValue == null) return null; return pulumi.Input.fromValue((guardedValue as num).toInt()); })(),
seconds: pulumi.Input.fromValue((map['seconds'] as num).toInt()),
);
}