ApiResponseMap<K, V> constructor

ApiResponseMap<K, V>(
  1. dynamic obj, {
  2. String? dataPath,
  3. String? errorPath,
})

Implementation

ApiResponseMap(dynamic obj, {String? dataPath, String? errorPath}) {
  var r = ApiResponse<dynamic>(obj, dataPath: dataPath, errorPath: errorPath);
  _error = r.error;

  if (isSuccess) this._map = Map.castFrom(r.data);
}