RestoreRequest.fromXml constructor

RestoreRequest.fromXml(
  1. XmlElement xml
)

Implementation

RestoreRequest.fromXml(XmlElement xml) {
  days = int.tryParse(getProp(xml, 'Days')!.innerText);
  description = getProp(xml, 'Description')?.innerText;
  glacierJobParameters =
      GlacierJobParameters.fromXml(getProp(xml, 'GlacierJobParameters'));
  outputLocation = OutputLocation.fromXml(getProp(xml, 'OutputLocation'));
  selectParameters =
      SelectParameters.fromXml(getProp(xml, 'SelectParameters'));
  tier = getProp(xml, 'Tier')?.innerText;
  type = getProp(xml, 'Type')?.innerText;
}