toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return <String, dynamic>{
    'source': source.name,
    'backgroundColor': _toHex(backgroundColor),
    'textFieldBorderColor': _toHex(textFieldBorderColor),
    'buttonBackgroundColor': _toHex(buttonBackgroundColor),
    'buttonTouchedBackgroundColor': _toHex(buttonTouchedBackgroundColor),
    'buttonDisabledBackgroundColor': _toHex(buttonDisabledBackgroundColor),
    'closeButtonTintColor': _toHex(closeButtonTintColor),
    'cancelButtonBackgroundColor': _toHex(cancelButtonBackgroundColor),
    'selectedCellBackgroundColor': _toHex(selectedCellBackgroundColor),
    'accentColor': _toHex(accentColor),
    'darkPrimaryColor': _toHex(darkPrimaryColor),
    'primaryColor': _toHex(primaryColor),
    'titleTextColor': _toHex(titleTextColor),
    'bodyTextColor': _toHex(bodyTextColor),
    'formLabelTextColor': _toHex(formLabelTextColor),
    'buttonTextColor': _toHex(buttonTextColor),
    'pickerTextColor': _toHex(pickerTextColor),
    'textFieldTextColor': _toHex(textFieldTextColor),
    'footnoteTextColor': _toHex(footnoteTextColor),
    'buttonCornerRadius': buttonCornerRadius,
    'textFieldCornerRadius': textFieldCornerRadius,
    'errorColor': _toHex(errorColor),
    'overlayBackgroundColor': _toHex(overlayBackgroundColor),
    'textFieldBackgroundColor': _toHex(textFieldBackgroundColor),
    'buttonDisabledTextColor': _toHex(buttonDisabledTextColor),
    'checkboxBackgroundColor': _toHex(checkboxBackgroundColor),
    'checkboxForegroundColor': _toHex(checkboxForegroundColor),
    'cancelButtonTextColor': _toHex(cancelButtonTextColor),
    'cancelButtonShadowColor': _toHex(cancelButtonShadowColor),
    'separatorColor': _toHex(separatorColor),
    'buttonShadowColor': _toHex(buttonShadowColor),
    'buttonShadowAlpha': buttonShadowAlpha,
    'buttonShadowRadius': buttonShadowRadius,
    'buttonShadowWidth': buttonShadowWidth,
    'buttonShadowHeight': buttonShadowHeight,
    'cancelButtonShadowRadius': cancelButtonShadowRadius,
    'titleTextFontFamily': titleTextFontFamily,
    'titleTextFontSize': titleTextFontSize,
    'bodyTextFontFamily': bodyTextFontFamily,
    'bodyTextFontSize': bodyTextFontSize,
    'showGovernmentIdIcons': showGovernmentIdIcons,
    'errorTextFontSize': errorTextFontSize,
    'errorTextFontFamily': errorTextFontFamily,
    'navigationBarTextColor': _toHex(navigationBarTextColor),
    'navigationBarTextFontSize': navigationBarTextFontSize,
    'navigationBarTextFontFamily': navigationBarTextFontFamily,
    'textFieldPlaceholderFontSize': textFieldPlaceholderFontSize,
    'textFieldPlaceholderFontFamily': textFieldPlaceholderFontFamily,
    'textFieldFontSize': textFieldFontSize,
    'textFieldFontFamily': textFieldFontFamily,
    'pickerTextFontSize': pickerTextFontSize,
    'pickerTextFontFamily': pickerTextFontFamily,
    'cameraHintTextColor': _toHex(cameraHintTextColor),
    'cameraInstructionsTextColor': _toHex(cameraInstructionsTextColor),
    'cameraGuideCornersColor': _toHex(cameraGuideCornersColor),
    'cameraGuideHintTextColor': _toHex(cameraGuideHintTextColor),
    'cameraButtonTextColor': _toHex(cameraButtonTextColor),
    'cameraButtonBackgroundColor': _toHex(cameraButtonBackgroundColor),
    'cameraButtonAlternateTextColor': _toHex(cameraButtonAlternateTextColor),
    'cameraButtonAlternateBackgroundColor':
        _toHex(cameraButtonAlternateBackgroundColor),
    'cancelButtonAlternateTextColor': _toHex(cancelButtonAlternateTextColor),
    'cancelButtonAlternateBackgroundColor':
        _toHex(cancelButtonAlternateBackgroundColor),
    'footnoteTextFontFamily': footnoteTextFontFamily,
    'footnoteTextFontSize': footnoteTextFontSize,
    'formLabelTextFontFamily': formLabelTextFontFamily,
    'formLabelTextFontSize': formLabelTextFontSize,
    'footerBackgroundColor': _toHex(footerBackgroundColor),
    'footerBorderColor': _toHex(footerBorderColor),
    'footerBorderWidth': footerBorderWidth,
  };
}