ThemeParameters.fromJson constructor

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

Parse from a json

Implementation

factory ThemeParameters.fromJson(Map<String, dynamic> json) =>
    ThemeParameters(
      backgroundColor: json['background_color'],
      secondaryBackgroundColor: json['secondary_background_color'],
      textColor: json['text_color'],
      hintColor: json['hint_color'],
      linkColor: json['link_color'],
      buttonColor: json['button_color'],
      buttonTextColor: json['button_text_color'],
    );