LoadPropertyValueFromXml method

  1. @override
Future<void> LoadPropertyValueFromXml(
  1. EwsServiceXmlReader reader,
  2. PropertyBag propertyBag
)
override
Loads from XML. The reader. The property bag.

Implementation

@override
Future<void> LoadPropertyValueFromXml(
    EwsServiceXmlReader reader, PropertyBag propertyBag) async {
  String? value = await reader.ReadElementValueWithNamespace(
      XmlNamespace.Types, this.XmlElementName);

  if (!StringUtils.IsNullOrEmpty(value)) {
    propertyBag[this] = this.Parse(value);
  }
}