fromJson static method

  1. @visibleForTesting
LicenseException? fromJson(
  1. dynamic jsonObject
)

Implementation

@visibleForTesting
static LicenseException? fromJson(jsonObject) {
  if (jsonObject == null) return null;
  var result = LicenseException._privateConstructor();

  result._code = LicensingResultCode.getByValue(jsonObject["code"])!;
  result._message = jsonObject["message"] ?? "";

  return result;
}