Product class

Inheritance
Annotations
  • @JsonSerializable.new()

Constructors

Product({required _ProductObject object, required String id, required bool active, String? description, Map<String, dynamic>? metadata, required String name})
Product.fromJson(Map<String, dynamic> json)
factory

Properties

active → bool
Whether the product is currently available for purchase.
final
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
id → String
Unique identifier for the object.
final
metadata → Map<String, dynamic>?
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
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
object → _ProductObject
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>
override
toString() → String
A string representation of this object.
inherited

Operators

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