tryDecodeGRpcErrorResponse function

GRpcErrorResponse? tryDecodeGRpcErrorResponse(
  1. String text
)

Implementation

Resp.GRpcErrorResponse? tryDecodeGRpcErrorResponse(String text) {
  try {
    return Resp.GRpcErrorResponse.fromJson(JSON.decode(text));
  } catch (e) {
    return null;
  }
}