decode<T> method

  1. @override
IgnoreEqualityBox<T> decode<T>(
  1. dynamic value
)
override

Override as MyClass<A> decode<A>(Object value)

Implementation

@override
// use the type parameter [T] in the return type [GenericBox<T>]
IgnoreEqualityBox<T> decode<T>(dynamic value) {
  // use the type parameter [T] in your decoding logic
  T content = MapperContainer.globals.fromValue<T>(value);
  return IgnoreEqualityBox<T>(content);
}