toJson method
Converts to JSON.
Implementation
Map<String, dynamic> toJson() => {
if (id != null) 'id': id,
'name': name,
'response': response,
if (parts != null) 'parts': parts!.map((e) => e.toJson()).toList(),
if (willContinue != null) 'willContinue': willContinue,
if (scheduling != null) 'scheduling': scheduling!.toJson(),
};