RelationDto class

Inheritance
Annotations
  • @JsonSerializable.new(includeIfNull: true, explicitToJson: true)

Constructors

RelationDto({required String id, required DateTime createdAt, required DateTime updatedAt, required String createdBy, String? tagId, String? sourceId, String? targetId, required RelationType type})
RelationDto.create({required RelationType type, required String tagId, required String otherId, required String userId})
factory
RelationDto.fromJson(Map<String, dynamic> json)
factory

Properties

createdAt DateTime
final
createdBy String
final
hashCode int
The hash code for this object.
no setteroverride
id String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sourceId String?
final
tagId String?
final
targetId String?
final
toJsonString String
no setteroverride
type RelationType
final
updatedAt DateTime
final

Methods

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.
override

Constants

fromJsonFactory → const RelationDto Function(Map<String, dynamic> json)
toJsonFactory → const Map<String, dynamic> Function(RelationDto instance)