tryDecodeRawJson static method

Map<String, dynamic>? tryDecodeRawJson(
  1. String? rawJson
)

Implementation

static Map<String, dynamic>? tryDecodeRawJson(String? rawJson) {
  try {
    final decoded = json.decode(rawJson!);
    return decoded;
  } catch (e) {
    return null;
  }
}