CatalogItemOptionValue class

Annotations
  • @JsonSerializable()

Constructors

CatalogItemOptionValue({String? color, String? description, String? itemOptionId, String? name, int? ordinal})
const
CatalogItemOptionValue.fromJson(Map<String, dynamic> json)
Converts a Map<String, dynamic> to a CatalogItemOptionValue
factory

Properties

color String?
The HTML-supported hex color for the item option (e.g., "#ff8d4e85"). Only displayed if show_colors is enabled on the parent ItemOption. When left unset, color defaults to white ("#ffffff") when show_colors is enabled on the parent ItemOption.
final
description String?
A human-readable description for the option value. This is a searchable attribute for use in applicable query filters.
final
hashCode int
The hash code for this object.
no setterinherited
itemOptionId String?
Unique ID of the associated item option.
final
name String?
Name of this item option value. This is a searchable attribute for use in applicable query filters.
final
ordinal int?
Determines where this option value appears in a list of option values.
final
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts a CatalogItemOptionValue to a Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

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