Mode.fromJson constructor
Implementation
factory Mode.fromJson(Map<String, dynamic> json) => Mode(
primaryColor: json["primary_color"] ?? "",
secondaryColor: json["secondary_color"] ?? "",
onPrimary: json["on_primary"] ?? "",
button: Button.fromJson(json["button"] ?? {}),
);