AllocationResourceStatus.fromJson constructor
AllocationResourceStatus.fromJson(
- Object? j
Implementation
factory AllocationResourceStatus.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return AllocationResourceStatus(
healthInfo: switch (json['healthInfo']) {
null => null,
Object $1 => AllocationResourceStatusHealthInfo.fromJson($1),
},
reservationBlockCount: switch (json['reservationBlockCount']) {
null => null,
Object $1 => decodeInt($1),
},
reservationMaintenance: switch (json['reservationMaintenance']) {
null => null,
Object $1 => GroupMaintenanceInfo.fromJson($1),
},
specificSkuAllocation: switch (json['specificSkuAllocation']) {
null => null,
Object $1 => AllocationResourceStatusSpecificSkuallocation.fromJson($1),
},
);
}