transformId<FOREIGN> method

  1. @override
String? transformId<FOREIGN>(
  1. FOREIGN? id
)
override

Implementation

@override
String? transformId<FOREIGN>(FOREIGN? id) {
  switch (id) {
    case null:
      return null;
    case String():
      return id;
    case int():
      return id.toString();
    default:
      throw Exception('Unsupported type: ${id.runtimeType}');
  }
}