toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final map = <String, dynamic>{};
  map['primary-color1'] = _primaryColor1;
  map['primary-color2'] = _primaryColor2;
  map['primary-color3'] = _primaryColor3;
  map['secondary-color1'] = _secondaryColor1;
  map['secondary-color2'] = _secondaryColor2;
  map['secondary-color3'] = _secondaryColor3;
  map['background-color'] = _backgroundColor;
  map['font-family'] = _fontFamily;
  map['font-size'] = _fontSize;
  if (_anchor != null) {
    map['anchor'] = _anchor?.toJson();
  }
  if (_box != null) {
    map['box'] = _box?.toJson();
  }
  if (_button != null) {
    map['button'] = _button?.toJson();
  }
  if (_card != null) {
    map['card'] = _card?.toJson();
  }
  if (_divider != null) {
    map['divider'] = _divider?.toJson();
  }
  if (_dotLoader != null) {
    map['dotLoader'] = _dotLoader?.toJson();
  }
  if (_formControl != null) {
    map['formControl'] = _formControl?.toJson();
  }
  if (_header != null) {
    map['header'] = _header?.toJson();
  }
  if (_icons != null) {
    map['icons'] = _icons?.toJson();
  }
  if (_inputGroup != null) {
    map['inputGroup'] = _inputGroup?.toJson();
  }
  if (_inputSlider != null) {
    map['inputSlider'] = _inputSlider?.toJson();
  }
  if (_label != null) {
    map['label'] = _label?.toJson();
  }
  if (_pieChart != null) {
    map['pieChart'] = _pieChart?.toJson();
  }
  if (_progressBar != null) {
    map['progressBar'] = _progressBar?.toJson();
  }
  if (_svgs != null) {
    map['svgs'] = _svgs?.toJson();
  }
  if (_text != null) {
    map['text'] = _text?.toJson();
  }
  if (_toggle != null) {
    map['toggle'] = _toggle?.toJson();
  }
  if (_tooltip != null) {
    map['tooltip'] = _tooltip?.toJson();
  }
  return map;
}