decode

fun decode(data: Any?): TaskState?

Returns a valid TaskState for data, null otherwise.