int parse(Object obj, [ int defaultVal = NEVER ])

Source

static int parse(Object obj, [int defaultVal = NEVER]) {
  if (obj is String && nameParser.containsKey(obj)) {
    return nameParser[obj];
  }
  return defaultVal;
}