read method
- Object fromSql
override
Interprets the underlying fromSql
value from the database driver into
the Dart representation T
of this type.
Implementation
@override
GeopolyPolygon read(Object fromSql) {
return switch (fromSql) {
Uint8List() => GeopolyPolygon.blob(fromSql),
String() => GeopolyPolygon.text(fromSql),
_ => throw UnimplementedError(),
};
}