SaleToPOIResponse.fromJson constructor
Creates a SaleToPOIResponse from JSON.
Implementation
factory SaleToPOIResponse.fromJson(Map<String, dynamic> json) {
return SaleToPOIResponse(
messageHeader: json['MessageHeader'] is Map
? MessageHeader.fromJson(
(json['MessageHeader'] as Map).cast<String, dynamic>(),
)
: null,
paymentResponse: json['PaymentResponse'] is Map
? PaymentResponse.fromJson(
(json['PaymentResponse'] as Map).cast<String, dynamic>(),
)
: null,
reversalResponse: json['ReversalResponse'] is Map
? ReversalResponse.fromJson(
(json['ReversalResponse'] as Map).cast<String, dynamic>(),
)
: null,
);
}