PaymentResponse.fromJson constructor

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

Implementation

factory PaymentResponse.fromJson(Map<String, dynamic> json) {
  return PaymentResponse(
    success: json['success'] as bool,
    code: json['code'] as String,
    message: json['message'] as String,
    data: PaymentData.fromJson(json['data'] as Map<String, dynamic>),
  );
}