fromJson static method

RFIDScenario fromJson(
  1. dynamic jsonObject
)

Allows you to deserialize object.

Implementation

static RFIDScenario fromJson(jsonObject) {
  var result = RFIDScenario();
  result.testSetters = {};

  result.paceStaticBinding = jsonObject["paceStaticBinding"];
  result.onlineTA = jsonObject["onlineTA"];
  result.writeEid = jsonObject["writeEid"];
  result.universalAccessRights = jsonObject["universalAccessRights"];
  result.authorizedRestrictedIdentification =
      jsonObject["authorizedRestrictedIdentification"];
  result.auxVerificationCommunityID =
      jsonObject["auxVerificationCommunityID"];
  result.auxVerificationDateOfBirth =
      jsonObject["auxVerificationDateOfBirth"];
  result.skipAA = jsonObject["skipAA"];
  result.strictProcessing = jsonObject["strictProcessing"];
  result.pkdDSCertPriority = jsonObject["pkdDSCertPriority"];
  result.pkdUseExternalCSCA = jsonObject["pkdUseExternalCSCA"];
  result.trustedPKD = jsonObject["trustedPKD"];
  result.passiveAuth = jsonObject["passiveAuth"];
  result.useSFI = jsonObject["useSFI"];
  result.readEPassport = jsonObject["readEPassport"];
  result.readEID = jsonObject["readEID"];
  result.readEDL = jsonObject["readEDL"];
  result.authorizedSTSignature = jsonObject["authorizedSTSignature"];
  result.authorizedSTQSignature = jsonObject["authorizedSTQSignature"];
  result.authorizedWriteDG17 = jsonObject["authorizedWriteDG17"];
  result.authorizedWriteDG18 = jsonObject["authorizedWriteDG18"];
  result.authorizedWriteDG19 = jsonObject["authorizedWriteDG19"];
  result.authorizedWriteDG20 = jsonObject["authorizedWriteDG20"];
  result.authorizedWriteDG21 = jsonObject["authorizedWriteDG21"];
  result.authorizedVerifyAge = jsonObject["authorizedVerifyAge"];
  result.authorizedVerifyCommunityID =
      jsonObject["authorizedVerifyCommunityID"];
  result.authorizedPrivilegedTerminal =
      jsonObject["authorizedPrivilegedTerminal"];
  result.authorizedCANAllowed = jsonObject["authorizedCANAllowed"];
  result.authorizedPINManagement = jsonObject["authorizedPINManagement"];
  result.authorizedInstallCert = jsonObject["authorizedInstallCert"];
  result.authorizedInstallQCert = jsonObject["authorizedInstallQCert"];
  result.applyAmendments = jsonObject["applyAmendments"];
  result.autoSettings = jsonObject["autoSettings"];
  result.proceedReadingAlways = jsonObject["proceedReadingAlways"];
  result.readDTC = jsonObject["readDTC"];
  result.mrzStrictCheck = jsonObject["mrzStrictCheck"];
  result.loadCRLFromRemote = jsonObject["loadCRLFromRemote"];
  result.independentSODStatus = jsonObject["independentSODStatus"];

  result.readingBuffer = jsonObject["readingBuffer"];
  result.onlineTAToSignDataType = jsonObject["onlineTAToSignDataType"];
  result.defaultReadingBufferSize = jsonObject["defaultReadingBufferSize"];
  result.signManagementAction = SignManagementAction.getByValue(
    jsonObject["signManagementAction"],
  );
  result.profilerType = RFIDSDKProfilerType.getByValue(
    jsonObject["profilerType"],
  );
  result.authProcType = RFIDAuthenticationProcedureType.getByValue(
    jsonObject["authProcType"],
  );
  result.baseSMProcedure = RFIDAccessControlProcedureType.getByValue(
    jsonObject["baseSMProcedure"],
  );
  result.pacePasswordType = RFIDPasswordType.getByValue(
    jsonObject["pacePasswordType"],
  );
  result.terminalType = RFIDTerminalType.getByValue(
    jsonObject["terminalType"],
  );

  result.password = jsonObject["password"];
  result.pkdPA = jsonObject["pkdPA"];
  result.pkdEAC = jsonObject["pkdEAC"];
  result.mrz = jsonObject["mrz"];
  result.eSignPINDefault = jsonObject["eSignPINDefault"];
  result.eSignPINNewValue = jsonObject["eSignPINNewValue"];
  result.cardAccess = jsonObject["cardAccess"];

  result.eDLDataGroups = EDLDataGroups.fromJson(jsonObject["eDLDataGroups"]);
  result.ePassportDataGroups = EPassportDataGroups.fromJson(
    jsonObject["ePassportDataGroups"],
  );
  result.eIDDataGroups = EIDDataGroups.fromJson(jsonObject["eIDDataGroups"]);
  result.dtcDataGroups = DTCDataGroup.fromJson(jsonObject["dtcDataGroups"]);

  return result;
}