encode<T> method
- covariant IgnoreEqualityBox<
T> self
override
Override as Object? encode<A>(MyClass<A> self)
Implementation
@override
// use the type parameter [T] in the parameter type [GenericBox<T>]
dynamic encode<T>(IgnoreEqualityBox<T> self) {
// use the type parameter [T] in your encoding logic
return MapperContainer.globals.toValue<T>(self.content);
}