LicenseSchema class
Defines schema for license fields validation
Constructors
-
LicenseSchema({Map<
String, SchemaField> featureSchema = const {}, Map<String, SchemaField> metadataSchema = const {}, bool allowUnknownFeatures = true, bool allowUnknownMetadata = true}) -
Creates a new license schema
const
Properties
- allowUnknownFeatures → bool
-
Whether to allow unknown/undeclared fields in features
final
- allowUnknownMetadata → bool
-
Whether to allow unknown/undeclared fields in metadata
final
-
featureSchema
→ Map<
String, SchemaField> -
Schema for feature fields
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
metadataSchema
→ Map<
String, SchemaField> -
Schema for metadata fields
final
- 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
-
toString(
) → String -
A string representation of this object.
inherited
-
validateFeatures(
Map< String, dynamic> features) → SchemaValidationResult - Validates features against schema
-
validateLicense(
License license) → SchemaValidationResult - Validates a license object against this schema
-
validateMetadata(
Map< String, dynamic> ? metadata) → SchemaValidationResult - Validates metadata against schema
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited