decode

fun decode(data: Any?): Rating?

Returns a valid Rating for data, null otherwise.