AllocationAggregateReservation.fromMap constructor

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

Implementation

factory AllocationAggregateReservation.fromMap(Map<String, dynamic> map) {
  return AllocationAggregateReservation(
    reservedResources: (() { final guardedValue = map['reservedResources']; if (guardedValue == null) return null; return pulumi.Input.fromValue(pulumi.Input.decodeList<AllocationAggregateReservationReservedResourceInfo>(guardedValue, (value) => AllocationAggregateReservationReservedResourceInfo.fromMap((value as Map).cast<String, dynamic>()))); })(),
    vmFamily: (() { final guardedValue = map['vmFamily']; if (guardedValue == null) return null; return pulumi.Input.fromValue(AllocationAggregateReservationVmFamily.fromValue(guardedValue as String)); })(),
    workloadType: (() { final guardedValue = map['workloadType']; if (guardedValue == null) return null; return pulumi.Input.fromValue(AllocationAggregateReservationWorkloadType.fromValue(guardedValue as String)); })(),
  );
}