InternalRangeAllocationOptions.fromMap constructor

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

Implementation

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