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