defaultValue property

dynamic defaultValue
final

Optional default value for this property.

When provided for non-nullable properties, this value will be used if the property is missing in the RDF data during deserialization, avoiding errors.

During serialization, properties with values equal to their default may be omitted (controlled by includeDefaultsInSerialization).

Note: Due to Dart's annotation constraints, only constant values can be used. This works well for primitive types and objects with const constructors.

Implementation

final dynamic defaultValue;