Decoder for an IdleState from a JSON-safe map.
IdleState
typedef IdleStateDecoder<S extends IdleState> = S Function( Map<String, dynamic> json, );