fromStruct static method
Success<PermanentlyProperty, PropertyException>
fromStruct(
- PermanentlyPropertyStruct struct
override
Implementation
static Success<PermanentlyProperty, PropertyException> fromStruct(PermanentlyPropertyStruct struct) {
final log = Log(classLocation: PermanentlyProperty, functionLocation: 'fromStruct');
final nameResult = PropertyName.result(struct.name);
log.add(nameResult);
final valueResult = PropertyPermanentlyValue.result(struct.value);
log.add(valueResult);
final result = PermanentlyProperty.result(
nameResult.wrapped,
valueResult.wrapped,
);
log.add(result);
return Success(result.wrapped, log);
}