Paymentable class abstract
Paymentable class
- Annotations
-
- @freezed
Constructors
- Paymentable({@Default('') String id, @Default('') @JsonKey(name: 'invoice_id') String invoiceId, @Default('') @JsonKey(name: 'credit_id') String creditId, @Default(0) double amount, @Default(0) double refunded, @Default(0) @JsonKey(name: 'created_at') int createdAt, @Default(0) @JsonKey(name: 'updated_at') int updatedAt})
-
Paymentable factory constructor
factory
-
Paymentable.fromJson(Map<
String, dynamic> json) -
Create an Paymentable from JSON
factory
Properties
- amount → double
-
no setterinherited
-
copyWith
→ $PaymentableCopyWith<
Paymentable> -
no setterinherited
- createdAt → int
-
no setterinherited
- creditId → String
-
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
no setterinherited
- invoiceId → String
-
no setterinherited
- refunded → double
-
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- updatedAt → int
-
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