WireGroupWireProperties.fromMap constructor

WireGroupWireProperties.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory WireGroupWireProperties.fromMap(Map<String, dynamic> map) {
  return WireGroupWireProperties(
    bandwidthAllocation: pulumi.Input.fromValue(map['bandwidthAllocation'] as String),
    bandwidthUnmetered: (() { final guardedValue = map['bandwidthUnmetered']; if (guardedValue == null) return null; return pulumi.Input.fromValue((guardedValue as num).toInt()); })(),
    faultResponse: (() { final guardedValue = map['faultResponse']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as String); })(),
  );
}