+ quotation provider
This commit is contained in:
@@ -4,17 +4,28 @@ part 'card.g.dart';
|
||||
|
||||
|
||||
@JsonSerializable()
|
||||
class CardPaymentDataDTO {
|
||||
class CardEndpointDTO {
|
||||
final String pan;
|
||||
final String firstName;
|
||||
final String lastName;
|
||||
|
||||
const CardPaymentDataDTO({
|
||||
@JsonKey(name: 'exp_month')
|
||||
final int? expMonth;
|
||||
|
||||
@JsonKey(name: 'exp_year')
|
||||
final int? expYear;
|
||||
|
||||
final String? country;
|
||||
|
||||
const CardEndpointDTO({
|
||||
required this.pan,
|
||||
required this.firstName,
|
||||
required this.lastName,
|
||||
required this.expMonth,
|
||||
required this.expYear,
|
||||
this.country,
|
||||
});
|
||||
|
||||
factory CardPaymentDataDTO.fromJson(Map<String, dynamic> json) => _$CardPaymentDataDTOFromJson(json);
|
||||
Map<String, dynamic> toJson() => _$CardPaymentDataDTOToJson(this);
|
||||
factory CardEndpointDTO.fromJson(Map<String, dynamic> json) => _$CardEndpointDTOFromJson(json);
|
||||
Map<String, dynamic> toJson() => _$CardEndpointDTOToJson(this);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user