ReadAttributesFromXml method

  1. @override
void ReadAttributesFromXml(
  1. EwsServiceXmlReader reader
)
override
Defines an implicit conversion of NormalizedBody into a string. The NormalizedBody to convert to a string. Reads attributes from XML. The reader.

Implementation

// static implicit operator string(NormalizedBody messageBody)
// Dart has no implicit conversions; use Text or toString() instead.

/// <summary>
/// Reads attributes from XML.
/// </summary>
/// <param name="reader">The reader.</param>
@override
void ReadAttributesFromXml(EwsServiceXmlReader reader) {
  _bodyType = reader.ReadAttributeValue<enumerations.BodyType>(
    XmlAttributeNames.BodyType,
  );

  String? attributeValue = reader.ReadAttributeValue<String>(
    XmlAttributeNames.IsTruncated,
  );
  if (!StringUtils.IsNullOrEmpty(attributeValue)) {
    _isTruncated = attributeValue!.toLowerCase() == 'true';
  }
}