Style.fromJson constructor

Style.fromJson(
  1. dynamic json
)

Implementation

Style.fromJson(dynamic json) {
  _primaryColor1 = json['primary-color1'];
  _primaryColor2 = json['primary-color2'];
  _primaryColor3 = json['primary-color3'];
  _secondaryColor1 = json['secondary-color1'];
  _secondaryColor2 = json['secondary-color2'];
  _secondaryColor3 = json['secondary-color3'];
  _backgroundColor = json['background-color'];
  _fontFamily = json['font-family'];
  _fontSize = json['font-size'];
  _anchor = json['anchor'] != null ? Anchor.fromJson(json['anchor']) : null;
  _box = json['box'] != null ? Box.fromJson(json['box']) : null;
  _button = json['button'] != null ? Button.fromJson(json['button']) : null;
  _card = json['card'] != null ? Card.fromJson(json['card']) : null;
  _divider = json['divider'] != null ? Divider.fromJson(json['divider']) : null;
  _dotLoader = json['dotLoader'] != null ? DotLoader.fromJson(json['dotLoader']) : null;
  _formControl = json['formControl'] != null ? FormControl.fromJson(json['formControl']) : null;
  _header = json['header'] != null ? Header.fromJson(json['header']) : null;
  _icons = json['icons'] != null ? Icons.fromJson(json['icons']) : null;
  _inputGroup = json['inputGroup'] != null ? InputGroup.fromJson(json['inputGroup']) : null;
  _inputSlider = json['inputSlider'] != null ? InputSlider.fromJson(json['inputSlider']) : null;
  _label = json['label'] != null ? Label.fromJson(json['label']) : null;
  _pieChart = json['pieChart'] != null ? PieChart.fromJson(json['pieChart']) : null;
  _progressBar = json['progressBar'] != null ? ProgressBar.fromJson(json['progressBar']) : null;
  _svgs = json['svgs'] != null ? Svgs.fromJson(json['svgs']) : null;
  _text = json['text'] != null ? Text.fromJson(json['text']) : null;
  _toggle = json['toggle'] != null ? Toggle.fromJson(json['toggle']) : null;
  _tooltip = json['tooltip'] != null ? Tooltip.fromJson(json['tooltip']) : null;
}