from static method
Implementation
static DOMTemplate? from(Object? value) {
if (value == null) return null;
if (value is DOMTemplate) return value;
if (value is String) return DOMTemplate.parse(value);
return null;
}
static DOMTemplate? from(Object? value) {
if (value == null) return null;
if (value is DOMTemplate) return value;
if (value is String) return DOMTemplate.parse(value);
return null;
}