AllocationResourceStatusHealthInfo.fromJson constructor
AllocationResourceStatusHealthInfo.fromJson(
- Object? j
Implementation
factory AllocationResourceStatusHealthInfo.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return AllocationResourceStatusHealthInfo(
degradedBlockCount: switch (json['degradedBlockCount']) {
null => null,
Object $1 => decodeInt($1),
},
healthStatus: switch (json['healthStatus']) {
null => null,
Object $1 => decodeString($1),
},
healthyBlockCount: switch (json['healthyBlockCount']) {
null => null,
Object $1 => decodeInt($1),
},
);
}