registerType static method

void registerType(
  1. Type classType,
  2. String classTypeCode,
  3. ConvertFunction? toJsonFunc,
  4. ConvertFunction? fromJsonFunc,
)

Registers a new type to the Jsonize conversion handling.

Implementation

static void registerType(Type classType, String classTypeCode,
    ConvertFunction? toJsonFunc, ConvertFunction? fromJsonFunc) {
  _register(classType, classTypeCode, toJsonFunc, fromJsonFunc);
}