SpatialReference.fromJsonString constructor

SpatialReference.fromJsonString(
  1. String jsonString
)

Implementation

factory SpatialReference.fromJsonString(
  String jsonString,
) {
  final objectHandle = _withThrowingErrorHandler((errorHandler) {
    final jsonCString = _CString(jsonString);
    return runtimecore.RT_SpatialReference_fromJSON(
      jsonCString.bytes,
      errorHandler,
    );
  });
  return SpatialReference._fromHandle(
    objectHandle,
  )!;
}