An apply method that allows instantiation of empty tasks.
An apply method that allows instantiation of empty tasks.
Supply the correct task type and it will return an instance of that type. Useful for creating a task when you're not sure what type will be created.
A writer to serialize Tasks to JSON by detecting task type and calling the appropriate writer.