toJson method
Implementation
Map<String, dynamic> toJson() => <String, dynamic>{
"title": title.toJson(),
"mode": mode.name,
"statusBarMode": statusBarMode.name,
"backgroundColor": backgroundColor.toString(),
"cancelButton": cancelButton.toJson(),
};