Paymentable constructor
- @JsonSerializable(explicitToJson: true)
- @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
Implementation
@JsonSerializable(explicitToJson: true)
factory 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;