PaymentResponse.fromJson constructor

PaymentResponse.fromJson(
  1. Map<String, dynamic> json
)

Creates a PaymentResponse from JSON.

Implementation

factory PaymentResponse.fromJson(Map<String, dynamic> json) {
  return PaymentResponse(
    poiData: json['POIData'] is Map
        ? POIData.fromJson((json['POIData'] as Map).cast<String, dynamic>())
        : null,
  );
}