This method shouldn't be in JsonDecoder. You can create a module for transfer decoding and include it when it's needed in the custom decoders.