Price class Null safety

https://stripe.com/docs/api/charges/object

Annotations

Constructors

Price({required _PriceObject object, required String id, required bool active, required String currency, required String product, required PriceType type, required int unitAmount})
Price.fromJson(Map<String, dynamic> json)
factory

Properties

active bool
Whether the price can be used for new purchases.
final
currency String
Three-letter ISO currency code, in lowercase. Must be a supported currency.
final
hashCode int
The hash code for this object.
read-onlyinherited
id String
Unique identifier for the object.
final
object → _PriceObject
final
product String
The ID of the product this price is associated with.
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
type PriceType
One of one_time or recurring depending on whether the price is for a one-time purchase or a recurring (subscription) purchase.
final
unitAmount int
The unit amount in cents to be charged, represented as a whole integer if possible. Only set if billing_scheme=per_unit.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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