tryParse static method

dynamic tryParse(
  1. dynamic p,
  2. dynamic str
)

Implementation

static tryParse(p, str) {
  try {
    p['data'] = json.decode(str);
  } catch (e) {
    return error();
  }
  return p;
}