CedarEntity class abstract
Dart representation of a Cedar entity.
Conforms to the entity JSON format.
Constructors
-
CedarEntity({required CedarEntityId id, List<
CedarEntityId> parents = const [], Map<String, CedarValueJson> attributes = const {}}) -
factory
- CedarEntity.build([void updates(CedarEntityBuilder)])
-
factory
-
CedarEntity.fromJson(Map<
String, Object?> json) -
factory
Properties
-
attributes
→ BuiltMap<
String, CedarValueJson> -
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → CedarEntityId
-
no setter
-
parents
→ BuiltList<
CedarEntityId> -
no setter
- 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
-
rebuild(
dynamic updates(CedarEntityBuilder)) → CedarEntity -
Rebuilds the instance.
inherited
-
toBuilder(
) → CedarEntityBuilder -
Converts the instance to a builder
B
.inherited -
toJson(
) → Map< String, Object?> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
-
serializer
→ Serializer<
CedarEntity> -
no setter