ReservationResourceStatusHealthInfo.fromMap constructor
ReservationResourceStatusHealthInfo.fromMap(
- Map<String, dynamic> map
)
Implementation
factory ReservationResourceStatusHealthInfo.fromMap(Map<String, dynamic> map) {
return ReservationResourceStatusHealthInfo(
degradedBlockCount: (() { final guardedValue = map['degradedBlockCount']; if (guardedValue == null) return null; return pulumi.Input.fromValue((guardedValue as num).toInt()); })(),
healthStatus: (() { final guardedValue = map['healthStatus']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as String); })(),
healthyBlockCount: (() { final guardedValue = map['healthyBlockCount']; if (guardedValue == null) return null; return pulumi.Input.fromValue((guardedValue as num).toInt()); })(),
);
}