Returns true if value matches this instance type.
true
value
bool matches(String value) { return encodeAsString() == value; }