ItemModel class
Constructors
-
ItemModel({required String id, required String storeId, required String name, required String? thumbnail, required String? description, required bool isSoldOut, required DateTime updatedAt, required DateTime createdAt, required Iterable<
ItemOptionModel> options}) -
const
- ItemModel.fromJson(dynamic json)
-
factory
Properties
- createdAt → DateTime
-
final
- description → String?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
final
- isSoldOut → bool
-
final
- name → String
-
final
-
options
→ Iterable<
ItemOptionModel> -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- storeId → String
-
final
- thumbnail → String?
-
final
- updatedAt → DateTime
-
final
Methods
-
copy(
{String? id, String? storeId, String? name, Option< String> ? thumbnail, Option<String> ? description, int? price, bool? isSoldOut, DateTime? updatedAt, DateTime? createdAt, Iterable<ItemOptionModel> ? options}) → ItemModel -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited