Mode.fromJson constructor

Mode.fromJson(
  1. Map<String, dynamic> json
)

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"] ?? {}),
    );