RestoreRequest.fromXml constructor

RestoreRequest.fromXml(
  1. XmlElement xml
)

Implementation

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