Product class

Annotations
  • @AckModel.new(description: 'A product model with validation', additionalProperties: true, additionalPropertiesField: 'metadata')

Constructors

Product({required String id, required String name, required String description, required double price, String? contactEmail, String? imageUrl, required Category category, required String releaseDate, required String createdAt, String? updatedAt, required int stockQuantity, required String status, required String productCode, Map<String, dynamic> metadata = const {}})

Properties

category Category
final
contactEmail String?
final
createdAt String
final
description String
final
hashCode int
The hash code for this object.
no setterinherited
id String
final
imageUrl String?
final
metadata Map<String, dynamic>
final
name String
final
price double
final
productCode String
final
releaseDate String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status String
final
stockQuantity int
final
updatedAt String?
final

Methods

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