fromFragmentPropertyStruct static method

Danger<PropertyRoster<FragmentProperty>, PropertyException> fromFragmentPropertyStruct(
  1. Iterable<FragmentPropertyStruct> struct
)

Implementation

static Danger<PropertyRoster<FragmentProperty>, PropertyException> fromFragmentPropertyStruct(Iterable<FragmentPropertyStruct> struct) {

    final log = Log(classLocation: PropertyRoster, functionLocation: 'fromFragmentPropertyStruct');

    final List<FragmentProperty> list = [];

    for (final i in struct) {

        final result = FragmentProperty.fromStruct(i);
        log.add(result);

        list.add(result.wrapped);

    }

    final result = PropertyRoster.result(list);
    log.add(result);

    return Danger.fromDanger(result, log);

}