CreateRequest class final
Parameters for creating a product.
Carries reference, description, about, and taxCode, among other supported fields.
Constructors
-
CreateRequest({String? reference, String? description, String? about, String? taxCode, String? category, ShipmentInput? shipment, DimensionsInput? dimensions, String? unitDimension, MediaInput? media, List<
AttributeInput> ? attributes, bool? publish, CustomData? customData, required Type type, required String name}) -
const
-
CreateRequest.fromJson(Map<
String, Object?> json) -
factory
Properties
- about → String?
-
final
-
attributes
→ List<
AttributeInput> ? -
final
- category → String?
-
final
- customData → CustomData?
-
final
- description → String?
-
final
- dimensions → DimensionsInput?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- media → MediaInput?
-
final
- name → String
-
final
- publish → bool?
-
final
- reference → String?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shipment → ShipmentInput?
-
final
- taxCode → String?
-
final
- type → Type
-
final
- unitDimension → String?
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, Object?> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited