convertAdNetworkErrorList method

List<AdNetworkError>? convertAdNetworkErrorList(
  1. List? arguments
)

Implementation

List<AdNetworkError>? convertAdNetworkErrorList(List<dynamic>? arguments) {
  if (arguments != null && arguments.length > 0) {
    List<AdNetworkError>? adNetworkErrorList = [];
    for (int i = 0; i < arguments.length; i++) {
      Map adNetworkError = arguments[i];
      adNetworkErrorList.add(new AdNetworkError(adNetworkError[KEY_AD_NETWORK_KEY], adNetworkError[KEY_ERROR_CODE], adNetworkError[KEY_ERROR_MESSAGE]));
    }
    return adNetworkErrorList;
  }
  return null;
}