toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      "primary_color": primaryColor,
      "secondary_color": secondaryColor,
      "on_primary": onPrimary,
      "button": button.toJson(),
    };