toJson method

  1. @override
Object toJson()
override

Implementation

@override
Object toJson() => {
  if (id.isNotDefault) 'id': id,
  'name': name,
  if (response != null) 'response': response!.toJson(),
  if (parts.isNotDefault) 'parts': encodeList(parts),
  if (willContinue.isNotDefault) 'willContinue': willContinue,
  if (scheduling != null) 'scheduling': scheduling!.toJson(),
};