SnapshotCopyGrant.fromXml constructor

SnapshotCopyGrant.fromXml(
  1. XmlElement elem
)

Implementation

factory SnapshotCopyGrant.fromXml(_s.XmlElement elem) {
  return SnapshotCopyGrant(
    kmsKeyId: _s.extractXmlStringValue(elem, 'KmsKeyId'),
    snapshotCopyGrantName:
        _s.extractXmlStringValue(elem, 'SnapshotCopyGrantName'),
    tags: _s.extractXmlChild(elem, 'Tags')?.let((elem) =>
        elem.findElements('Tag').map((c) => Tag.fromXml(c)).toList()),
  );
}