SchemaVersion class
A semantic schema version, consisting of a major number, minor number, and an optional qualifier.
- Implemented types
- Annotations
-
- @JsonSerializable(fieldRename: FieldRename.snake, includeIfNull: false)
Constructors
- SchemaVersion({int major = 1, int minor = 0, String? qualifier})
-
SchemaVersion.fromJson(Map<
String, dynamic> json) -
factory
- SchemaVersion.fromString(String version)
- SchemaVersion.v10()
-
factory
Properties
Methods
-
compareTo(
SchemaVersion other) → int -
Compares this
ShemaVersion
to another.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- V1_0 ↔ SchemaVersion
-
getter/setter pair
- V2_0 ↔ SchemaVersion
-
getter/setter pair
Static Methods
-
isValidVersion(
String version) → bool -
Check if
version
is a valid OMH schema.