inverseTransformId<FOREIGN> method

  1. @override
FOREIGN inverseTransformId<FOREIGN>(
  1. String id
)
override

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');
  }
}