fromPrimitives method Null safety
- Object? serialized
The object returned by this method is passed to initWithValue to restore
the value that this property is wrapping to the value described by the
The method may be called multiple times throughout the life of the RestorableProperty. Whenever new restoration data has been provided to the RestorationMixin the property is registered to, either this method or createDefaultValue is called before initWithValue is invoked.
@override T fromPrimitives(Object? serialized) => serialized as T;