toJson method Null safety

Map<String, dynamic> toJson()

Holds the override implementation of the widget to get json format of the widget class

Implementation

Map<String, dynamic> toJson();