AllocationAggregateReservationReservedResourceInfo.fromJson constructor

AllocationAggregateReservationReservedResourceInfo.fromJson(
  1. Object? j
)

Implementation

factory AllocationAggregateReservationReservedResourceInfo.fromJson(
  Object? j,
) {
  final json = j as Map<String, Object?>;
  return AllocationAggregateReservationReservedResourceInfo(
    accelerator: switch (json['accelerator']) {
      null => null,
      Object $1 =>
        AllocationAggregateReservationReservedResourceInfoAccelerator.fromJson(
          $1,
        ),
    },
  );
}