encoder method

  1. @override
Object? encoder(
  1. DSSEnums value,
  2. EncodingContext context
)
inherited

The mapping method to encode value to a serializable value.

Implementation

@override
Object? encoder(T value, EncodingContext context) {
  _container = context.container;
  try {
    return _encode(value, context);
  } finally {
    _container = null;
  }
}