addApiDecoders method

dynamic addApiDecoders(
  1. Map<Type, dynamic> apiDecoders
)

Set API decoders

Implementation

addApiDecoders(Map<Type, dynamic> apiDecoders) {
  apiDecoders.entries.forEach((apiDecoder) {
    if (apiDecoder.value is NyApiService Function()) {
      _apiDecoders.addAll({apiDecoder.key: apiDecoder.value});
    }

    if (apiDecoder.value is NyApiService) {
      _singletonApiDecoders.addAll({apiDecoder.key: apiDecoder.value});
    }
  });
}