getObjectVersion function

int? getObjectVersion(
  1. dynamic data
)

Implementation

int? getObjectVersion(dynamic data // SuiObjectResponse | SuiObjectRef
) {
  if (data is SuiObjectRef) {
    return data.version;
  }
  return getObjectReference(data)?.version;
}