Price class
Constructors
-
Price({required int amount, String? currency, String? id, String? token, String? productToken, String? name, String? description, bool? active, List<
String> taxes = const <String>[], String? unitLabel, Map<String, String> ? metadata, List<Tier> ? tiers, Recurrency periodType = Recurrency.onetime, int? periodLength, bool archived = false, Product? product}) - Price.fromJson(String source)
-
factory
-
Price.fromMap(Map<
String, dynamic> map) -
factory
Properties
- active ↔ bool?
-
getter/setter pair
- amount ↔ int
-
getter/setter pair
- archived ↔ bool
-
getter/setter pair
- currency ↔ String?
-
getter/setter pair
- description ↔ String?
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setter
- id ↔ String?
-
getter/setter pair
-
metadata
↔ Map<
String, String> ? -
getter/setter pair
- name ↔ String?
-
getter/setter pair
- periodLength ↔ int?
-
getter/setter pair
- periodType ↔ Recurrency
-
getter/setter pair
- product ↔ Product?
-
getter/setter pair
- productToken ↔ String?
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
taxes
↔ List<
String> -
getter/setter pair
-
tiers
↔ List<
Tier> ? -
getter/setter pair
- token ↔ String?
-
getter/setter pair
- unitLabel ↔ String?
-
getter/setter pair
Methods
-
copyWith(
{String? currency, int? amount, String? name, String? description, bool? active, String? unitLabel, Map< String, String> ? metadata, List<String> ? taxesTokens, List<Tier> ? tiers, bool? recurring, int? reccurencyPerYear, bool? archived, Product? product}) → Price - Specify how to clone the concrete class.
-
getPrice(
double quantity) → double -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
inherited
-
toMap(
{bool databaseFormat = false}) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object? other) → bool - The equality operator.