encode<T> method

  1. @override
dynamic encode<T>(
  1. 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);
}