ServerStorageVersion class
An API server instance reports the version it can decode and the version it encodes objects to when persisting objects in the backend.
Constructors
-
ServerStorageVersion({String? apiServerID, List<
String> ? decodableVersions, String? encodingVersion}) -
Default constructor.
const
-
ServerStorageVersion.fromJson(Map<
String, dynamic> json) -
Creates a ServerStorageVersion from JSON data.
factory
Properties
- apiServerID → String?
-
The ID of the reporting API server.
final
-
decodableVersions
→ List<
String> ? -
The API server can decode objects encoded in these versions. The encodingVersion must be included in the decodableVersions.
final
- encodingVersion → String?
-
The API server encodes the object to this version when persisting it in the backend (e.g., etcd).
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, Object> - Converts a ServerStorageVersion instance to JSON data.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited