Subscription class

Subscription - an entity that signifies the fact of subscribing to the tariff of any team for a certain period (not defined, in the case of the default tariff).

Annotations
  • @freezed

Constructors

Subscription({@JsonKey(name: 'uid') required String uid, @JsonKey(name: 'activated') String? activated, @JsonKey(name: 'expires') String? expires, @JsonKey(name: 'tariff_uid') String? tariffUid, @JsonKey(name: 'user_uid') String? userUid})
const
factory
Subscription.fromJson(Map<String, dynamic> json)
factory

Properties

activated String?
Subscription activation time.
no setterinherited
copyWith → $SubscriptionCopyWith<Subscription>
no setterinherited
expires String?
Subscription expiration time.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tariffUid String?
ID of the tariff for which the subscription is valid.
no setterinherited
uid String
Subscription id.
no setterinherited
userUid String?
ID of the user who subscribed.
no setterinherited

Methods

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

Operators

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