decodeStringOrNull method

  1. @override
String? decodeStringOrNull()
override

Decodes the data as a nullable string value.

Implementation

@override
String? decodeStringOrNull() {
  try {
    return _value as String?;
  } on TypeError {
    throw CodableException.unexpectedType(expected: 'String?', actual: '${_value.runtimeType}', data: _value);
  }
}