StripePaymentModel class
A model for storing data on payment methods for stripes.
ストライプの支払い方法のデータを保管するためのモデル。
- Annotations
-
- @freezed
- @immutable
- @CollectionModelPath(StripePaymentModel.path)
Constructors
- StripePaymentModel({@JsonKey(name: "id") required String paymentId, @JsonKey(name: "type") required String type, @JsonKey(name: "expMonth") @Default(1) int expMonth, @JsonKey(name: "expYear") @Default(2000) int expYear, @JsonKey(name: "brand") required String brand, @JsonKey(name: "numberLast") required String numberLast, @JsonKey(name: "default") @Default(false) bool isDefault})
-
A model for storing data on payment methods for stripes.
constfactory
-
StripePaymentModel.fromJson(Map<
String, Object?> json) -
factory
Properties
- brand → String
-
no setterinherited
-
copyWith
→ $StripePaymentModelCopyWith<
StripePaymentModel> -
no setterinherited
- expMonth → int
-
no setterinherited
- expYear → int
-
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- isDefault → bool
-
no setterinherited
- numberLast → String
-
no setterinherited
- paymentId → String
-
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → String
-
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
Constants
- collection → const _$$_StripePaymentModelCollectionQuery
- Query for collection.
- document → const _$$_StripePaymentModelDocumentQuery
- Query for document.
- path → const String
- Model path.