deserialize method

dynamic deserialize(
  1. XmlElement xml
)

Implementation

deserialize(XmlElement xml) {
  String tag = 'uri';
  uri = Xml.get(node: xml, tag: tag);

  tag = 'type';
  type = Xml.get(node: xml, tag: tag);

  tag = 'name';
  name = Xml.get(node: xml, tag: tag);

  tag = 'updated';
  String? updated = Xml.get(node: xml, tag: tag);
  if (isNumeric(updated)) epoch = toDouble(updated);
}