+source +destination in payments
This commit is contained in:
22
frontend/pshared/lib/data/dto/payment/response_endpoint.dart
Normal file
22
frontend/pshared/lib/data/dto/payment/response_endpoint.dart
Normal file
@@ -0,0 +1,22 @@
|
||||
import 'package:json_annotation/json_annotation.dart';
|
||||
|
||||
part 'response_endpoint.g.dart';
|
||||
|
||||
@JsonSerializable()
|
||||
class PaymentResponseEndpointDTO {
|
||||
final String? type;
|
||||
final Map<String, dynamic>? data;
|
||||
final String? paymentMethodRef;
|
||||
final String? payeeRef;
|
||||
|
||||
const PaymentResponseEndpointDTO({
|
||||
this.type,
|
||||
this.data,
|
||||
this.paymentMethodRef,
|
||||
this.payeeRef,
|
||||
});
|
||||
|
||||
factory PaymentResponseEndpointDTO.fromJson(Map<String, dynamic> json) =>
|
||||
_$PaymentResponseEndpointDTOFromJson(json);
|
||||
Map<String, dynamic> toJson() => _$PaymentResponseEndpointDTOToJson(this);
|
||||
}
|
||||
Reference in New Issue
Block a user