decodeString method
Decodes string
to an instance of T
.
Implementation
@override
bool decodeString(String string) {
switch (string) {
case 'false':
return false;
case 'true':
return true;
default:
throw ArgumentError.value(string);
}
}