TryReadElementFromXml method

  1. @override
Future<bool> TryReadElementFromXml(
  1. EwsServiceXmlReader reader
)
override
Tries to read element from XML. The reader.

Implementation

@override
Future<bool> TryReadElementFromXml(EwsServiceXmlReader reader) async {
  bool result = await super.TryReadElementFromXml(reader);

  if (!result) {
    if (reader.LocalName == XmlElementNames.DateTime) {
      this._dateTime =
          core.DateTime.parse((await reader.ReadElementValue<String>())!);

      result = true;
    }
  }

  return result;
}