decodeString method

  1. @override
bool decodeString(
  1. String string
)
override

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);
  }
}