Product class
Constructors
-
Product({String? id, String? token, required String? client, String? thumbnail, String? name, String? description, bool? active, String? unitLabel, Map<
String, String> ? metadata, List<String> ? medias, DateTime? creationDate, bool archived = false, List<Price> prices = const []}) - Product.fromJson(String source)
-
factory
-
Product.fromMap(Map<
String, dynamic> map) -
factory
Properties
- active ↔ bool?
-
getter/setter pair
- archived ↔ bool
-
getter/setter pair
- client ↔ String?
-
getter/setter pair
- creationDate ↔ DateTime?
-
getter/setter pair
- description ↔ String?
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setter
- id ↔ String?
-
getter/setter pair
-
medias
↔ List<
String> ? -
getter/setter pair
-
metadata
↔ Map<
String, String> ? -
getter/setter pair
- name ↔ String?
-
getter/setter pair
-
prices
↔ List<
Price> -
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- thumbnail ↔ String?
-
getter/setter pair
- token ↔ String?
-
getter/setter pair
- unitLabel ↔ String?
-
getter/setter pair
Methods
-
copyWith(
{String? thumbnail, String? name, String? description, bool? active, String? unitLabel, Map< String, String> ? metadata, List<String> ? medias, DateTime? creationDate, bool? archived, List<Price> ? prices}) → Product - Specify how to clone the concrete class.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
inherited
-
toMap(
{bool databaseFormat = false}) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object? other) → bool - The equality operator.