DMode.fromJson constructor

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

Implementation

factory DMode.fromJson(Map<String, dynamic> json) => DMode(
      primaryColor: json["primary_color"],
      screenBgColor: json["screen_bg_color"],
      primaryLabelColor: json["primary_label_color"],
      secondaryLabelColor: json["secondary_label_color"],
      cardColor: json["card_color"],
      onPrimaryColor: json["on_primary_color"],
      dangerColor: json["danger_color"],
      warningColor: json["warning_color"],
    );