AllocationAggregateReservation.fromJson constructor

AllocationAggregateReservation.fromJson(
  1. Map json_
)

Implementation

AllocationAggregateReservation.fromJson(core.Map json_)
    : this(
        inUseResources: json_.containsKey('inUseResources')
            ? (json_['inUseResources'] as core.List)
                .map((value) =>
                    AllocationAggregateReservationReservedResourceInfo
                        .fromJson(
                            value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        reservedResources: json_.containsKey('reservedResources')
            ? (json_['reservedResources'] as core.List)
                .map((value) =>
                    AllocationAggregateReservationReservedResourceInfo
                        .fromJson(
                            value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        vmFamily: json_.containsKey('vmFamily')
            ? json_['vmFamily'] as core.String
            : null,
        workloadType: json_.containsKey('workloadType')
            ? json_['workloadType'] as core.String
            : null,
      );