clearDecoder<T> static method

void clearDecoder<T>()

Clears the decoder function for type T.

  • Note: Decoders that cannot be cleared handle the following types:
    • bool, double, int, Null,num,Symbol,Type,dynamic,
    • List<dynamic>, Map<dynamic, dynamic>, Set<dynamic>.

Implementation

static void clearDecoder<T>() {
  if (!isBuiltIn(T)) {
    _checkers.remove(T);
    _decoders.remove(T);
  }
}