toJson method
Implementation
Map<String, dynamic> toJson() => {
"submission_method": submissionMethod == null ? null : submissionMethod,
"choices": choices == null
? null
: List<dynamic>.from(choices!.map((x) => x.toJson())),
"submission_data":
submissionData == null ? null : submissionData!.toJson(),
"submission_url": submissionUrl == null ? null : submissionUrl,
};