Product class

The class contains the information about Store Product

Constructors

Product(String id, num price, String priceString, String title, String currencyCode, SubscriptionPeriod subscriptionPeriod)
Product.fromJson(Map<String, dynamic> json)
convert json data into Product model
factory

Properties

currencyCode String
Currency code for the price
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
id String
Id of the product
getter/setter pair
price num
Local currency price for the product in double
getter/setter pair
priceString String
Local currency price for the product in string
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
subscriptionPeriod SubscriptionPeriod
Subscription period, which consists of unit and number of units
getter/setter pair
title String
title of the product
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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