normalizeID method

Object? normalizeID(
  1. Object? id, {
  2. O? obj,
})

Implementation

Object? normalizeID(Object? id, {O? obj}) {
  if (id == null) return null;

  var idType = this.idType(obj);

  if (idType == int) {
    return TypeParser.parseInt(id);
  } else if (idType == String) {
    return TypeParser.parseString(id);
  } else {
    return TypeParser.parseValueForType(idType, id);
  }
}