parse static method

ConsentMessage? parse(
  1. String jsonStr
)

Implementation

static ConsentMessage? parse(String jsonStr) {
  try {
    Map<String, dynamic> json = jsonDecode(jsonStr);
    return ConsentMessage.fromJson(json);
  } catch (e, stackTrace) {
    Pam.log(["ConsentMessage.parse Error", stackTrace, e]);
    return null;
  }
}