ProductData class

Annotations
  • @JsonSerializable.new()

Constructors

ProductData({required String name, String? description, List<String>? images})
ProductData.fromJson(Map<String, dynamic> json)
factory

Properties

description → String?
The product’s description, meant to be displayable to the customer. Use this field to optionally store a long form explanation of the product being sold for your own rendering purposes.
final
hashCode → int
The hash code for this object.
no setterinherited
images → List<String>?
A list of up to 8 URLs of images for this product, meant to be displayable to the customer.
final
name → String
The product’s name, meant to be displayable to the customer. Whenever this product is sold via a subscription, name will show up on associated invoice line item descriptions.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

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

Operators

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