toJson method Null safety

  1. @override
Map<String, dynamic> toJson()
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()};
}