toJson method

Map<String, dynamic> toJson()

Allows you to serialize object.

Implementation

Map<String, dynamic> toJson() => {
      "100": _intFromColor(_onboardingScreenStartButtonBackground),
      "101": _intFromColor(_onboardingScreenStartButtonTitle),
      "102": _intFromColor(_onboardingScreenBackground),
      "103": _intFromColor(_onboardingScreenTitleLabelText),
      "104": _intFromColor(_onboardingScreenSubtitleLabelText),
      "105": _intFromColor(_onboardingScreenMessageLabelsText),
      "200": _intFromColor(_cameraScreenStrokeNormal),
      "201": _intFromColor(_cameraScreenStrokeActive),
      "202": _intFromColor(_cameraScreenSectorTarget),
      "203": _intFromColor(_cameraScreenSectorActive),
      "204": _intFromColor(_cameraScreenFrontHintLabelBackground),
      "205": _intFromColor(_cameraScreenFrontHintLabelText),
      "206": _intFromColor(_cameraScreenBackHintLabelBackground),
      "207": _intFromColor(_cameraScreenBackHintLabelText),
      "208": _intFromColor(_cameraScreenLightToolbarTint),
      "209": _intFromColor(_cameraScreenDarkToolbarTint),
      "300": _intFromColor(_retryScreenBackground),
      "301": _intFromColor(_retryScreenRetryButtonBackground),
      "302": _intFromColor(_retryScreenRetryButtonTitle),
      "303": _intFromColor(_retryScreenTitleLabelText),
      "304": _intFromColor(_retryScreenSubtitleLabelText),
      "305": _intFromColor(_retryScreenHintLabelsText),
      "400": _intFromColor(_processingScreenBackground),
      "401": _intFromColor(_processingScreenProgress),
      "402": _intFromColor(_processingScreenTitleLabel),
      "500": _intFromColor(_successScreenBackground),
    }.clearNulls();