hasErrorFromResult static method

dynamic hasErrorFromResult(
  1. Map map
)

Implementation

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