hasErrorFromResult static method

dynamic hasErrorFromResult(
  1. Map map
)

Implementation

static hasErrorFromResult(Map map) {
  if (map['error'] == null) {
    return;
  } else {
    try {
      throw (DMHubError.fromJson(map['error']));
    } on Exception {}
  }
}