Credentials.fromXml constructor

Credentials.fromXml(
  1. XmlElement elem
)

Implementation

factory Credentials.fromXml(_s.XmlElement elem) {
  return Credentials(
    accessKeyId: _s.extractXmlStringValue(elem, 'AccessKeyId')!,
    expiration: _s.extractXmlDateTimeValue(elem, 'Expiration')!,
    secretAccessKey: _s.extractXmlStringValue(elem, 'SecretAccessKey')!,
    sessionToken: _s.extractXmlStringValue(elem, 'SessionToken')!,
  );
}