We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
class BoolToStringProcessor implements FieldProcessor<bool, String> { const BoolToStringProcessor(); @override bool deserialize(String value) { return value == true.toString(); } @override String serialize(bool value) { return value.toString(); } } class StringToBoolProcessor implements FieldProcessor<String, bool> { const StringToBoolProcessor(); @override String deserialize(bool value) { return value.toString(); } @override bool serialize(String value) { return value == true.toString(); } } const FieldProcessor<bool, String> boolToStringProcessor = BoolToStringProcessor(); const FieldProcessor<String, bool> stringToBoolProcessor = StringToBoolProcessor();
The text was updated successfully, but these errors were encountered:
That will be nice. You are welcome to send a PR for this.
Thanks!
Sorry, something went wrong.
i have send a PR#173 for this
tejainece
No branches or pull requests
The text was updated successfully, but these errors were encountered: