fromJson static method

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

Implementation

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

  result._code = InitErrorCode.getByValue(jsonObject["code"])!;
  result._message = jsonObject["message"] ?? "";
  result._underlyingError =
      LicenseException.fromJson(jsonObject["underlyingError"]);

  return result;
}