fromJson static method

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

Implementation

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

  result._expiryDate = jsonObject["expiryDate"];
  result._countryFilter = _stringListFrom(jsonObject["countryFilter"]);
  result._isRfidAvailable = jsonObject["isRfidAvailable"] ?? false;

  return result;
}