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"])!;

  return result;
}