TrainingMiningAssertion class
Typed representation of the CAWG Training and Data Mining assertion.
This assertion indicates whether the content creator permits their work to be used for AI training, data mining, or inference. Based on the CAWG v1.1 specification.
Constructors
-
TrainingMiningAssertion({required List<
TrainingMiningEntry> entries, String? label}) -
Creates an instance of TrainingMiningAssertion.
const
-
TrainingMiningAssertion.fromAssertionData(Map<
String, dynamic> data, {String? label}) -
Creates a TrainingMiningAssertion from assertion data.
factory
Properties
- aiInferenceAllowed → bool?
-
Whether AI inference is permitted according to this assertion.
no setter
- dataMiningAllowed → bool?
-
Whether data mining is permitted according to this assertion.
no setter
-
entries
→ List<
TrainingMiningEntry> -
The list of permission entries.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- label → String?
-
The assertion label (e.g.
c2pa.training-mining).final -
props
→ List<
Object?> -
The list of properties that will be used to determine whether
two instances are equal.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stringify → bool?
-
If set to
true, thetoStringmethod will be overridden to output this instance'sprops.no setterinherited - trainingAllowed → bool?
-
Whether AI training is permitted according to this assertion.
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Serializes this assertion to a JSON map suitable for embedding in a manifest assertion.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited