fromJson static method

CustomizationColors fromJson(
  1. dynamic jsonObject
)

Allows you to deserialize object.

Implementation

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

  result._onboardingScreenStartButtonBackground =
      _intToColor(jsonObject["100"])!;
  result._onboardingScreenStartButtonTitle = _intToColor(jsonObject["101"])!;
  result._onboardingScreenBackground = _intToColor(jsonObject["102"])!;
  result._onboardingScreenTitleLabelText = _intToColor(jsonObject["103"])!;
  result._onboardingScreenSubtitleLabelText = _intToColor(jsonObject["104"])!;
  result._onboardingScreenMessageLabelsText = _intToColor(jsonObject["105"])!;
  result._cameraScreenStrokeNormal = _intToColor(jsonObject["200"])!;
  result._cameraScreenStrokeActive = _intToColor(jsonObject["201"])!;
  result._cameraScreenSectorTarget = _intToColor(jsonObject["202"])!;
  result._cameraScreenSectorActive = _intToColor(jsonObject["203"])!;
  result._cameraScreenFrontHintLabelBackground =
      _intToColor(jsonObject["204"])!;
  result._cameraScreenFrontHintLabelText = _intToColor(jsonObject["205"])!;
  result._cameraScreenBackHintLabelBackground =
      _intToColor(jsonObject["206"])!;
  result._cameraScreenBackHintLabelText = _intToColor(jsonObject["207"])!;
  result._cameraScreenLightToolbarTint = _intToColor(jsonObject["208"])!;
  result._cameraScreenDarkToolbarTint = _intToColor(jsonObject["209"])!;
  result._retryScreenBackground = _intToColor(jsonObject["300"])!;
  result._retryScreenRetryButtonBackground = _intToColor(jsonObject["301"])!;
  result._retryScreenRetryButtonTitle = _intToColor(jsonObject["302"])!;
  result._retryScreenTitleLabelText = _intToColor(jsonObject["303"])!;
  result._retryScreenSubtitleLabelText = _intToColor(jsonObject["304"])!;
  result._retryScreenHintLabelsText = _intToColor(jsonObject["305"])!;
  result._processingScreenBackground = _intToColor(jsonObject["400"])!;
  result._processingScreenProgress = _intToColor(jsonObject["401"])!;
  result._processingScreenTitleLabel = _intToColor(jsonObject["402"])!;
  result._successScreenBackground = _intToColor(jsonObject["500"])!;

  return result;
}