Viewpoint.fromJsonString constructor

Viewpoint.fromJsonString(
  1. String jsonString
)

Implementation

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