decode method

  1. @override
T decode(
  1. XmlNode? node,
  2. XmlCodecDecodeSignature? decode
)
override

Implementation

@override
T decode(XmlNode? node, XmlCodecDecodeSignature? decode) => switch (node) {
      XmlElement(name: XmlName(:final local), :final innerText)
          when local == nodeLocalName =>
        decodeValue!(innerText),
      _ => throw ArgumentError()
    };