LoadFromXml method
Loads from XML.
The reader.
Implementation
Future<void> LoadFromXml(EwsServiceXmlReader reader) async {
String? attributeValue;
attributeValue = reader.ReadAttributeValue(
XmlAttributeNames.DistinguishedPropertySetId,
);
if (!StringUtils.IsNullOrEmpty(attributeValue)) {
_propertySet = EnumToString.fromString(
DefaultExtendedPropertySet.values,
attributeValue,
);
}
attributeValue = reader.ReadAttributeValue(XmlAttributeNames.PropertySetId);
if (!StringUtils.IsNullOrEmpty(attributeValue)) {
_propertySetId = Uuid(attributeValue);
}
attributeValue = reader.ReadAttributeValue(XmlAttributeNames.PropertyTag);
if (!StringUtils.IsNullOrEmpty(attributeValue)) {
_tag = int.parse(attributeValue!);
}
_name = reader.ReadAttributeValue(XmlAttributeNames.PropertyName);
attributeValue = reader.ReadAttributeValue(XmlAttributeNames.PropertyId);
if (!StringUtils.IsNullOrEmpty(attributeValue)) {
_id = int.parse(attributeValue!);
}
_mapiType = reader.ReadAttributeValue<MapiPropertyType>(
XmlAttributeNames.PropertyType,
);
}