UserModel class
Value for model.
- Annotations
-
- @freezed
- @formValue
- @immutable
- @CollectionModelPath.new("user")
Constructors
- UserModel({required String name, String? description, ModelImageUri? image, @RefParam.new(PrefsModelDocument) PrefsModelRef? prefs})
-
constfactory
-
UserModel.fromJson(Map<
String, Object?> json) -
factory
Properties
-
copyWith
→ $UserModelCopyWith<
UserModel> -
no setterinherited
- description → String?
-
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- image → ModelImageUri?
-
no setterinherited
- name → String
-
no setterinherited
-
prefs
→ ModelRefBase<
PrefsModel> ? -
no setterinherited
- 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
-
toJson(
) → Map< String, dynamic> -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- collection → const _$UserModelCollectionQuery
- Query for collection.
- document → const _$UserModelDocumentQuery
- Query for document.
- form → const _$UserModelFormQuery
- Query for form value.