fromJson static method

Field? fromJson(
  1. String json
)

Populates the data members of this object from a JSON string.

Parameters:

  • json — The JSON string.

Return Value: A Field.

Implementation

static Field? fromJson(
  String json,
) {
  _initializeArcGISEnvironmentIfNeeded();
  final coreJSON = _CString(json);
  final objectHandle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_Field_fromJSON(
      coreJSON.bytes,
      errorHandler,
    );
  });
  return Field._fromHandle(
    objectHandle,
  );
}