core.Map<core.String, core.dynamic> toJson() => { if (assignmentId != null) 'assignmentId': assignmentId!, if (destinationId != null) 'destinationId': destinationId!, };