Subscription class
Constructors
- Subscription({required String id, required String organizationId, required String productId, required int totalSeats, required int seatsUsed, required SubscriptionStatusEnum status, required String startDate, required String? endDate, required String? pricePerSeat, required String? billingCycle, required String? providerType, required String? providerSubscriptionId, required String? providerPlanId, required String? paymentStatus, required String? nextBillingDate, required String? lastPaymentDate, required String? paypalSubscriptionId, required String? paypalPlanId, required UserMetadata? metadata, required String? createdAt, required String? updatedAt})
- Returns a new Subscription instance.
Properties
- billingCycle ↔ String?
-
getter/setter pair
- createdAt ↔ String?
-
getter/setter pair
- endDate ↔ String?
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setteroverride
- id ↔ String
-
Subscription ID
getter/setter pair
- lastPaymentDate ↔ String?
-
getter/setter pair
- metadata ↔ UserMetadata?
-
getter/setter pair
- nextBillingDate ↔ String?
-
getter/setter pair
- organizationId ↔ String
-
getter/setter pair
- paymentStatus ↔ String?
-
getter/setter pair
- paypalPlanId ↔ String?
-
getter/setter pair
- paypalSubscriptionId ↔ String?
-
getter/setter pair
- pricePerSeat ↔ String?
-
getter/setter pair
- productId ↔ String
-
getter/setter pair
- providerPlanId ↔ String?
-
getter/setter pair
- providerSubscriptionId ↔ String?
-
getter/setter pair
- providerType ↔ String?
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- seatsUsed ↔ int
-
Minimum value: -2147483648
Maximum value: 2147483647
getter/setter pair
- startDate ↔ String
-
getter/setter pair
- status ↔ SubscriptionStatusEnum
-
getter/setter pair
- totalSeats ↔ int
-
Minimum value: -2147483648
Maximum value: 2147483647
getter/setter pair
- updatedAt ↔ String?
-
getter/setter pair
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) → Subscription? -
Returns a new Subscription instance and imports its values from
valueif it's a Map, null otherwise. -
listFromJson(
dynamic json, {bool growable = false}) → List< Subscription> -
mapFromJson(
dynamic json) → Map< String, Subscription> -
mapListFromJson(
dynamic json, {bool growable = false}) → Map< String, List< Subscription> >
Constants
-
requiredKeys
→ const Set<
String> - The list of required keys that must be present in a JSON.