BillingPriceResponse class

Constructors

BillingPriceResponse({required BillingPriceResponseObjectEnum object, required String id, required String planId, required String instanceId, required String currency, required String currencySymbol, required int amount, required int annualMonthlyAmount, required CommerceMoneyResponse fee, required CommerceMoneyResponse annualMonthlyFee, String? description, required int createdAt})
Returns a new BillingPriceResponse instance.

Properties

amount int
The amount in cents for the price.
getter/setter pair
annualMonthlyAmount int
The monthly amount in cents when billed annually.
getter/setter pair
annualMonthlyFee CommerceMoneyResponse
getter/setter pair
createdAt int
Unix timestamp (milliseconds) of creation.
getter/setter pair
currency String
The currency code (e.g., "USD").
getter/setter pair
currencySymbol String
The currency symbol (e.g., "$").
getter/setter pair
description String?
The description of the price.
getter/setter pair
fee CommerceMoneyResponse
getter/setter pair
hashCode int
The hash code for this object.
no setteroverride
id String
Unique identifier for the price.
getter/setter pair
instanceId String
Unique identifier for the instance.
getter/setter pair
object BillingPriceResponseObjectEnum
String representing the object's type. Objects of the same type share the same value.
getter/setter pair
planId String
Unique identifier for the associated plan.
getter/setter pair
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.
override

Operators

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

Static Methods

fromJson(dynamic value) BillingPriceResponse?
Returns a new BillingPriceResponse instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) List<BillingPriceResponse>
mapFromJson(dynamic json) Map<String, BillingPriceResponse>
mapListFromJson(dynamic json, {bool growable = false}) Map<String, List<BillingPriceResponse>>

Constants

requiredKeys → const Set<String>
The list of required keys that must be present in a JSON.