CatalogItemOption class

Annotations
  • @JsonSerializable()

Constructors

CatalogItemOption({String? description, String? displayName, String? name, bool? showColors, List<CatalogObject>? values})
const
CatalogItemOption.fromJson(Map<String, dynamic> json)
Converts a Map<String, dynamic> to a CatalogItemOption
factory

Properties

description String?
The item option's human-readable description. Displayed in the Square Point of Sale app for the seller and in the Online Store or on receipts for the buyer. This is a searchable attribute for use in applicable query filters.
final
displayName String?
The item option's display name for the customer. This is a searchable attribute for use in applicable query filters.
final
hashCode int
The hash code for this object.
no setterinherited
name String?
The item option's display name for the seller. Must be unique across all item options. This is a searchable attribute for use in applicable query filters.
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
showColors bool?
If true, display colors for entries in values when present.
final
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
values List<CatalogObject>?
A list of CatalogObjects containing the CatalogItemOptionValues for this item.
final

Methods

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

Operators

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