ContentTypeProfiles.fromXml constructor

ContentTypeProfiles.fromXml(
  1. XmlElement elem
)

Implementation

factory ContentTypeProfiles.fromXml(_s.XmlElement elem) {
  return ContentTypeProfiles(
    quantity: _s.extractXmlIntValue(elem, 'Quantity')!,
    items: _s.extractXmlChild(elem, 'Items')?.let((elem) => elem
        .findElements('ContentTypeProfile')
        .map((c) => ContentTypeProfile.fromXml(c))
        .toList()),
  );
}