fromJson static method

CustomizationColors fromJson(
  1. dynamic jsonObject
)

Allows you to deserialize object.

Implementation

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

  result.rfidProcessingScreenBackground =
      _intToColor(jsonObject["rfidProcessingScreenBackground"]);
  result.rfidProcessingScreenHintLabelText =
      _intToColor(jsonObject["rfidProcessingScreenHintLabelText"]);
  result.rfidProcessingScreenHintLabelBackground =
      _intToColor(jsonObject["rfidProcessingScreenHintLabelBackground"]);
  result.rfidProcessingScreenProgressLabelText =
      _intToColor(jsonObject["rfidProcessingScreenProgressLabelText"]);
  result.rfidProcessingScreenProgressBar =
      _intToColor(jsonObject["rfidProcessingScreenProgressBar"]);
  result.rfidProcessingScreenProgressBarBackground =
      _intToColor(jsonObject["rfidProcessingScreenProgressBarBackground"]);
  result.rfidProcessingScreenResultLabelText =
      _intToColor(jsonObject["rfidProcessingScreenResultLabelText"]);
  result.rfidProcessingScreenLoadingBar =
      _intToColor(jsonObject["rfidProcessingScreenLoadingBar"]);
  result.rfidEnableNfcTitleText =
      _intToColor(jsonObject["rfidEnableNfcTitleText"]);
  result.rfidEnableNfcDescriptionText =
      _intToColor(jsonObject["rfidEnableNfcDescriptionText"]);
  result.rfidEnableNfcButtonText =
      _intToColor(jsonObject["rfidEnableNfcButtonText"]);
  result.rfidEnableNfcButtonBackground =
      _intToColor(jsonObject["rfidEnableNfcButtonBackground"]);
  result.mdlProcessingScreenBackground =
      _intToColor(jsonObject["mdlProcessingScreenBackground"]);
  result.mdlProcessingScreenHintLabelText =
      _intToColor(jsonObject["mdlProcessingScreenHintLabelText"]);
  result.mdlProcessingScreenHintLabelBackground =
      _intToColor(jsonObject["mdlProcessingScreenHintLabelBackground"]);
  result.mdlProcessingScreenProgressLabelText =
      _intToColor(jsonObject["mdlProcessingScreenProgressLabelText"]);
  result.mdlProcessingScreenResultLabelText =
      _intToColor(jsonObject["mdlProcessingScreenResultLabelText"]);
  result.mdlProcessingScreenLoadingBar =
      _intToColor(jsonObject["mdlProcessingScreenLoadingBar"]);
  result.mdlEnableNfcTitleText =
      _intToColor(jsonObject["mdlEnableNfcTitleText"]);
  result.mdlEnableNfcDescriptionText =
      _intToColor(jsonObject["mdlEnableNfcDescriptionText"]);
  result.mdlEnableNfcButtonText =
      _intToColor(jsonObject["mdlEnableNfcButtonText"]);
  result.mdlEnableNfcButtonBackground =
      _intToColor(jsonObject["mdlEnableNfcButtonBackground"]);

  return result;
}