Action.fromXml constructor
Action.fromXml(
- XmlElement elem
Implementation
factory Action.fromXml(_s.XmlElement elem) {
return Action(
type: _s.extractXmlStringValue(elem, 'Type')!.toActionTypeEnum(),
authenticateCognitoConfig: _s
.extractXmlChild(elem, 'AuthenticateCognitoConfig')
?.let((e) => AuthenticateCognitoActionConfig.fromXml(e)),
authenticateOidcConfig: _s
.extractXmlChild(elem, 'AuthenticateOidcConfig')
?.let((e) => AuthenticateOidcActionConfig.fromXml(e)),
fixedResponseConfig: _s
.extractXmlChild(elem, 'FixedResponseConfig')
?.let((e) => FixedResponseActionConfig.fromXml(e)),
forwardConfig: _s
.extractXmlChild(elem, 'ForwardConfig')
?.let((e) => ForwardActionConfig.fromXml(e)),
order: _s.extractXmlIntValue(elem, 'Order'),
redirectConfig: _s
.extractXmlChild(elem, 'RedirectConfig')
?.let((e) => RedirectActionConfig.fromXml(e)),
targetGroupArn: _s.extractXmlStringValue(elem, 'TargetGroupArn'),
);
}