read method

  1. @override
GeopolyPolygon read(
  1. 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(),
  };
}