This closes https://github.com/ably/ably-flutter/issues/149. Previously, serialization of enums and values without assigned encoder/decoder failed silently, returning null when proper value was not found. I've replaced these null returns with thrown exceptions, so it's clear that an error has occurred, and should be fixed
This closes https://github.com/ably/ably-flutter/issues/149. Previously, serialization of enums and values without assigned encoder/decoder failed silently, returning
null
when proper value was not found. I've replaced thesenull
returns with thrown exceptions, so it's clear that an error has occurred, and should be fixed