Marker interface inherited by classes that support serialization to and from JSON. More...
Header:#include <JsonSerializable.h>
Since: Esri::ArcGISRuntime 100.0 Inherited By:
Esri::ArcGISRuntime::ArcadeExpression, Esri::ArcGISRuntime::ArcGISMapServiceInfo, Esri::ArcGISRuntime::Authentication::ArcGISCredential, Esri::ArcGISRuntime::Authentication::OAuthUserConfiguration, Esri::ArcGISRuntime::Basemap, Esri::ArcGISRuntime::ClassBreak, Esri::ArcGISRuntime::Domain, Esri::ArcGISRuntime::FacilityLayerDefinition, Esri::ArcGISRuntime::FeatureCollection, Esri::ArcGISRuntime::FeatureFormDefinition, Esri::ArcGISRuntime::Geometry, Esri::ArcGISRuntime::GeoModelFloorDefinition, Esri::ArcGISRuntime::Job, Esri::ArcGISRuntime::LabelAngle, Esri::ArcGISRuntime::LabelDefinition, Esri::ArcGISRuntime::LabelStackSeparator, Esri::ArcGISRuntime::LayerFloorDefinition, Esri::ArcGISRuntime::LevelLayerDefinition, Esri::ArcGISRuntime::LicenseInfo, Esri::ArcGISRuntime::Map, Esri::ArcGISRuntime::OAuthClientInfo, Esri::ArcGISRuntime::PopupElement, Esri::ArcGISRuntime::PortalGroup, Esri::ArcGISRuntime::PortalHelperServices, Esri::ArcGISRuntime::PortalInfo, Esri::ArcGISRuntime::PortalItem, Esri::ArcGISRuntime::PortalUser, Esri::ArcGISRuntime::Renderer, Esri::ArcGISRuntime::SiteLayerDefinition, Esri::ArcGISRuntime::SpatialReference, Esri::ArcGISRuntime::Symbol, Esri::ArcGISRuntime::UniqueValue, and Esri::ArcGISRuntime::Viewpoint
Public Functions virtual QString toJson() const = 0 Detailed DescriptionJsonSerializable is an abstract, pure virtual base class.
JsonSerializable is a marker interface in that there are four interface methods (toJson, fromJson, unknownJson, and unsupportedJson) but fromJson is not part of the interface due to technical limitations. The fromJson method is static and cannot be overridden by base classes. All classes that inherit from this abstract base class support all four methods.
QString json = m_licenseInfo.toJson(); QFile file(QDir::tempPath() + "/licenseFile.txt"); file.open(QIODevice::WriteOnly); file.write(json.toUtf8()); file.close();Member Function Documentation
[pure virtual]
QString JsonSerializable::toJson() const
Returns this object as a JSON string.
This is the pure virtual version of this method. It should be implemented by classes that inherit from this interface.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4