CategoryViewModel class

Available extensions
Annotations
  • @JsonSerializable(explicitToJson: true)

Constructors

CategoryViewModel.new({int? id, String? name, String? photoUri})
CategoryViewModel.fromJson(Map<String, dynamic> json)
factory

Properties

hashCode int
The hash code for this object.
no setteroverride
id int?
final
name String?
final
photoUri String?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({int? id, String? name, String? photoUri}) CategoryViewModel

Available on CategoryViewModel, provided by the $CategoryViewModelExtension 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 CategoryViewModel Function(Map<String, dynamic> json)
toJsonFactory → const Map<String, dynamic> Function(CategoryViewModel instance)