ProductRequest class

Create product request object

Annotations
  • @JsonSerializable(fieldRename: FieldRename.snake)

Constructors

ProductRequest({required String name, required ProductType type, String? id, String? description, String? category, String? imageUrl, String? homeUrl})
ProductRequest.fromJson(Map<String, dynamic> json)
factory

Properties

category String?
The product category. Possible values
getter/setter pair
description String?
The product description.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
homeUrl String?
The home page URL for the product.
getter/setter pair
id String?
The ID of the product. You can specify the SKU for the product. If you omit the ID, the system generates it. System-generated IDs have the PROD- prefix.
getter/setter pair
imageUrl String?
The image URL for the product.
getter/setter pair
name String
The product name.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type ProductType
The product type. Indicates whether the product is physical or digital goods, or a service. The possible values are:
final

Methods

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.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited