AssumeRoleWithWebIdentityResponse.fromXml constructor

AssumeRoleWithWebIdentityResponse.fromXml(
  1. XmlElement elem
)

Implementation

factory AssumeRoleWithWebIdentityResponse.fromXml(_s.XmlElement elem) {
  return AssumeRoleWithWebIdentityResponse(
    assumedRoleUser: _s
        .extractXmlChild(elem, 'AssumedRoleUser')
        ?.let((e) => AssumedRoleUser.fromXml(e)),
    audience: _s.extractXmlStringValue(elem, 'Audience'),
    credentials: _s
        .extractXmlChild(elem, 'Credentials')
        ?.let((e) => Credentials.fromXml(e)),
    packedPolicySize: _s.extractXmlIntValue(elem, 'PackedPolicySize'),
    provider: _s.extractXmlStringValue(elem, 'Provider'),
    subjectFromWebIdentityToken:
        _s.extractXmlStringValue(elem, 'SubjectFromWebIdentityToken'),
  );
}