fromStruct static method

Success<FragmentProperty, PropertyException> fromStruct(
  1. FragmentPropertyStruct struct
)
override

Implementation

static Success<FragmentProperty, PropertyException> fromStruct(FragmentPropertyStruct struct) {

    final log = Log(classLocation: FragmentProperty, functionLocation: 'fromStruct');

    final nameResult = PropertyName.result(struct.name);
    log.add(nameResult);

    final valueResult = PropertyFragmentValue.result(struct.value);
    log.add(valueResult);

    final result = FragmentProperty.result(
        nameResult.wrapped,
        valueResult.wrapped,
    );
    log.add(result);

    return Success(result.wrapped, log);

}