PolicyStatus.fromXml constructor

PolicyStatus.fromXml(
  1. XmlElement xml
)

Implementation

PolicyStatus.fromXml(XmlElement xml) {
  // Check if 'IsPublic' property is not null before using 'toUpperCase'
  final isPublicProp = getProp(xml, 'IsPublic')?.value;
  isPublic = isPublicProp != null && isPublicProp.toUpperCase() == 'TRUE';
}