fromJson method Null safety

CertificateData? fromJson(
  1. dynamic jsonObject
)

Implementation

static CertificateData? fromJson(jsonObject) {
  if (jsonObject == null) return null;
  var result = new CertificateData();

  result.length = jsonObject["length"];
  result.data = jsonObject["data"];

  return result;
}