toDaoValue method

  1. @override
Geometry? toDaoValue(
  1. dynamic data
)
override

Implementation

@override
Geometry? toDaoValue(data) {
  if (data == null) {
    return null;
  }

  if (data is Uint8List) {
    return Geometry.parseEWKB(data);
  }

  throw Exception('Invalid geometry data.');
}