20 lines
654 B
Dart
20 lines
654 B
Dart
import 'package:json_annotation/json_annotation.dart';
|
|
|
|
import 'package:pshared/api/responses/base.dart';
|
|
import 'package:pshared/api/responses/token.dart';
|
|
import 'package:pshared/data/dto/payment/payment_quote.dart';
|
|
|
|
part 'quotation.g.dart';
|
|
|
|
|
|
@JsonSerializable(explicitToJson: true)
|
|
class PaymentQuoteResponse extends BaseAuthorizedResponse {
|
|
|
|
final PaymentQuoteDTO quote;
|
|
|
|
const PaymentQuoteResponse({required super.accessToken, required this.quote});
|
|
|
|
factory PaymentQuoteResponse.fromJson(Map<String, dynamic> json) => _$PaymentQuoteResponseFromJson(json);
|
|
@override
|
|
Map<String, dynamic> toJson() => _$PaymentQuoteResponseToJson(this);
|
|
} |