decode

fun decode(data: Any?): FailureType?

Returns a valid FailureType for data, null otherwise.