toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    if (fontRegular != null) 'fontRegular': fontRegular,
    if (fontMedium != null) 'fontMedium': fontMedium,
    if (fontBold != null) 'fontBold': fontBold,
    if (messageColor != null) 'messageColor': messageColor,
    if (countdownColor != null) 'countdownColor': countdownColor,
    if (infoColor != null) 'infoColor': infoColor,
    if (instructionColor != null) 'instructionColor': instructionColor,
    if (buttonColor != null) 'buttonColor': buttonColor,
    if (previewColor != null) 'previewColor': previewColor,
    if (dialogColor != null) 'dialogColor': dialogColor,
  };
}