fromPermanentlyPropertyStruct static method
Danger<PropertyRoster<PermanentlyProperty> , PropertyException>
fromPermanentlyPropertyStruct(
- Iterable<
PermanentlyPropertyStruct> struct
Implementation
static Danger<PropertyRoster<PermanentlyProperty>, PropertyException> fromPermanentlyPropertyStruct(Iterable<PermanentlyPropertyStruct> struct) {
final log = Log(classLocation: PropertyRoster, functionLocation: 'fromPermanentlyPropertyStruct');
final List<PermanentlyProperty> list = [];
for (final i in struct) {
final result = PermanentlyProperty.fromStruct(i);
log.add(result);
list.add(result.wrapped);
}
final result = PropertyRoster.result(list);
log.add(result);
return Danger.fromDanger(result, log);
}