inverseTransformId<FOREIGN> method
Implementation
@override
FOREIGN inverseTransformId<FOREIGN>(String id) {
switch (FOREIGN) {
case const (String):
return id as FOREIGN;
case const (int):
return int.parse(id) as FOREIGN;
default:
throw Exception('Unsupported type: $FOREIGN');
}
}