registerJsonDecoder<T> method
add json decoder for type
Implementation
void registerJsonDecoder<T>(T Function(String) f) {
if (T == dynamic) {
NatsException('can not register dyname type');
}
_jsonDecoder[T] = f;
}
add json decoder for type
void registerJsonDecoder<T>(T Function(String) f) {
if (T == dynamic) {
NatsException('can not register dyname type');
}
_jsonDecoder[T] = f;
}