TaskViewModel class
- Available extensions
- Annotations
-
- @JsonSerializable(explicitToJson: true)
Constructors
-
TaskViewModel.new({int? id, String? title, String? description, TaskState? state, double? distance, DateTime? createdAt, DateTime? updatedAt, List<
double> ? location, String? locationName, List<CategoryViewModel> ? categories, List<TaskGalleryPhotoViewModel> ? galleryPhotos, TaskType? type, TaskFrequency? frequency, UserViewModel? user, UserViewModel? assignee, DateTime? idealDate, TaskIdealDateCompletionWhen? idealDateCompletion, bool? isInterested, bool? isSavedTask}) -
TaskViewModel.fromJson(Map<
String, dynamic> json) -
factory
Properties
- assignee → UserViewModel?
-
final
-
categories
→ List<
CategoryViewModel> ? -
final
- createdAt → DateTime?
-
final
- description → String?
-
final
- distance → double?
-
final
- frequency → TaskFrequency?
-
final
-
galleryPhotos
→ List<
TaskGalleryPhotoViewModel> ? -
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- id → int?
-
final
- idealDate → DateTime?
-
final
- idealDateCompletion → TaskIdealDateCompletionWhen?
-
final
- isInterested → bool?
-
final
- isSavedTask → bool?
-
final
-
location
→ List<
double> ? -
final
- locationName → String?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- state → TaskState?
-
final
- title → String?
-
final
- type → TaskType?
-
final
- updatedAt → DateTime?
-
final
- user → UserViewModel?
-
final
Methods
-
copyWith(
{int? id, String? title, String? description, TaskState? state, double? distance, DateTime? createdAt, DateTime? updatedAt, List< double> ? location, String? locationName, List<CategoryViewModel> ? categories, List<TaskGalleryPhotoViewModel> ? galleryPhotos, TaskType? type, TaskFrequency? frequency, UserViewModel? user, UserViewModel? assignee, DateTime? idealDate, TaskIdealDateCompletionWhen? idealDateCompletion, bool? isInterested, bool? isSavedTask}) → TaskViewModel -
Available on TaskViewModel, provided by the $TaskViewModelExtension extension
-
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.
inherited
Operators
-
operator ==(
dynamic other) → bool -
The equality operator.
override
Constants
-
fromJsonFactory
→ const TaskViewModel Function(Map<
String, dynamic> json) -
toJsonFactory
→ const Map<
String, dynamic> Function(TaskViewModel instance)