PortalItem.fromJsonString constructor

PortalItem.fromJsonString(
  1. String jsonString
)

Implementation

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