toJson method
Implementation
Map<String, dynamic> toJson() {
final _json = <String, dynamic>{};
if (callbackId != null) {
_json[r'callback_id'] = callbackId;
}
_json[r'title'] = title;
if (introductionText != null) {
_json[r'introduction_text'] = introductionText;
}
_json[r'elements'] = elements;
if (submitLabel != null) {
_json[r'submit_label'] = submitLabel;
}
if (notifyOnCancel != null) {
_json[r'notify_on_cancel'] = notifyOnCancel;
}
if (state != null) {
_json[r'state'] = state;
}
return _json;
}