apiDecoder<T> static method

NyApiService apiDecoder<T>()

Get a API Decoder

Implementation

static NyApiService apiDecoder<T>() {
  Map<Type, NyApiService> decoders = apiDecoders();
  if (decoders.containsKey(T)) {
    return decoders[T]!;
  }
  throw Exception("ApiService not found");
}