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 = jsonObject["countryFilter"] == null
      ? null
      : List<String>.from(jsonObject["countryFilter"]);
  result._isRfidAvailable = jsonObject["isRfidAvailable"];

  return result;
}