PolicyStatus.fromXml constructor
PolicyStatus.fromXml(
- 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';
}