toJson method

Map<String, String> toJson()

Implementation

Map<String, String> toJson() {
  return {
    'primaryColor': getColor(primaryColor),
    'colorOnPrimary': getColor(colorOnPrimary),
    'secondaryColor': getColor(secondaryColor),
    'colorOnSecondary': getColor(colorOnSecondary),
  };
}