fromStruct static method
Implementation
static Danger<Property, PropertyException> fromStruct(PropertyStruct struct) {
final log = Log(classLocation: Property, functionLocation: 'fromStruct');
late final Danger<Property, PropertyException> result;
switch (struct) {
case FragmentPropertyStruct(): result = FragmentProperty.fromStruct(struct);
case ListPropertyStruct(): result = ListProperty.fromStruct(struct);
case PermanentlyPropertyStruct(): result = PermanentlyProperty.fromStruct(struct);
case TemporaryPropertyStruct(): result = TemporaryProperty.fromStruct(struct);
}
log.add(result);
return Danger.fromDanger(result, log);
}