toJson method
Holds the override implementation of the widget to get json format of the widget class
Implementation
@override
Map<String, dynamic> toJson() {
return {
...super.toJson(),
"size": size,
"baseStyle": headingBaseStyle.toJson(),
};
}