ScalingParameters.fromXml constructor

ScalingParameters.fromXml(
  1. XmlElement elem
)

Implementation

factory ScalingParameters.fromXml(_s.XmlElement elem) {
  return ScalingParameters(
    desiredInstanceType: _s
        .extractXmlStringValue(elem, 'DesiredInstanceType')
        ?.toPartitionInstanceType(),
    desiredPartitionCount:
        _s.extractXmlIntValue(elem, 'DesiredPartitionCount'),
    desiredReplicationCount:
        _s.extractXmlIntValue(elem, 'DesiredReplicationCount'),
  );
}