toJson method
Implementation
Map<String, dynamic> toJson() {
final map = <String, dynamic>{};
map['bgColor'] = _bgColor;
map['bgColorOpacity'] = _bgColorOpacity;
map['hoverBgColor'] = _hoverBgColor;
map['hoverBgColorOpacity'] = _hoverBgColorOpacity;
if (_title != null) {
map['title'] = _title?.toJson();
}
if (_subTitle != null) {
map['subTitle'] = _subTitle?.toJson();
}
if (_icon != null) {
map['icon'] = _icon?.toJson();
}
return map;
}