toJson method

Map<String, dynamic> toJson()

Allows you to serialize object.

Implementation

Map<String, dynamic> toJson() => {
      "rfidProcessingScreenBackground":
          _intFromColor(rfidProcessingScreenBackground),
      "rfidProcessingScreenHintLabelText":
          _intFromColor(rfidProcessingScreenHintLabelText),
      "rfidProcessingScreenHintLabelBackground":
          _intFromColor(rfidProcessingScreenHintLabelBackground),
      "rfidProcessingScreenProgressLabelText":
          _intFromColor(rfidProcessingScreenProgressLabelText),
      "rfidProcessingScreenProgressBar":
          _intFromColor(rfidProcessingScreenProgressBar),
      "rfidProcessingScreenProgressBarBackground":
          _intFromColor(rfidProcessingScreenProgressBarBackground),
      "rfidProcessingScreenResultLabelText":
          _intFromColor(rfidProcessingScreenResultLabelText),
    }.clearNulls();