DBProxyTarget.fromXml constructor

DBProxyTarget.fromXml(
  1. XmlElement elem
)

Implementation

factory DBProxyTarget.fromXml(_s.XmlElement elem) {
  return DBProxyTarget(
    endpoint: _s.extractXmlStringValue(elem, 'Endpoint'),
    port: _s.extractXmlIntValue(elem, 'Port'),
    rdsResourceId: _s.extractXmlStringValue(elem, 'RdsResourceId'),
    targetArn: _s.extractXmlStringValue(elem, 'TargetArn'),
    targetHealth: _s
        .extractXmlChild(elem, 'TargetHealth')
        ?.let((e) => TargetHealth.fromXml(e)),
    trackedClusterId: _s.extractXmlStringValue(elem, 'TrackedClusterId'),
    type: _s.extractXmlStringValue(elem, 'Type')?.toTargetType(),
  );
}