addApiDecoders method

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

Set API decoders

Implementation

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

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