convertValue method

  1. @override
ContentType? convertValue(
  1. XmlElement node
)

Implementation

@override
ContentType? convertValue(XmlElement node) {
  final str = node.innerText.trim();
  return str.isNotEmpty ? ContentType.parse(str) : null;
}