Document class abstract
Document class
- Annotations
-
- @freezed
Constructors
- Document({@Default('') String id, @Default('') String name, @Default('') String type, @Default('') String url, @Default(0) int width, @Default(0) int height, @Default(0) int size, @Default('') String preview, @Default('') String disk, @Default('') String hash, @Default('') @JsonKey(name: 'user_id') String createdById, @Default('') @JsonKey(name: 'assigned_user_id') String assignedToId, @Default(0) @JsonKey(name: 'created_at') int createdAt, @Default(0) @JsonKey(name: 'updated_at') int updatedAt, @Default(0) @JsonKey(name: 'archived_at') int archivedAt, @Default(false) @JsonKey(name: 'is_deleted') bool isDeleted, @Default(false) @JsonKey(name: 'is_default') bool isDefault})
-
Document factory constructor
factory
-
Document.fromJson(Map<
String, dynamic> json) -
Create an Document from JSON
factory
Properties
- archivedAt → int
-
no setterinherited
- assignedToId → String
-
no setterinherited
-
copyWith
→ $DocumentCopyWith<
Document> -
no setterinherited
- createdAt → int
-
no setterinherited
- createdById → String
-
no setterinherited
- disk → String
-
no setterinherited
- hash → String
-
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → int
-
no setterinherited
- id → String
-
no setterinherited
- isDefault → bool
-
no setterinherited
- isDeleted → bool
-
no setterinherited
- name → String
-
no setterinherited
- preview → String
-
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- size → int
-
no setterinherited
- type → String
-
no setterinherited
- updatedAt → int
-
no setterinherited
- url → String
-
no setterinherited
- width → int
-
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited