IBinoxusPaymentResponse.fromJson constructor

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

Implementation

factory IBinoxusPaymentResponse.fromJson(Map<String, dynamic> json) {
  return IBinoxusPaymentResponse(
    paymentInfo: json.containsKey('payment_info')
        ? IPaymentInfo.fromJson(json['payment_info'])
        : IPaymentInfo.empty(),
    companyInfo: json.containsKey('companyInfo')
        ? ICompanyInfo.fromJson(json['companyInfo'])
        : ICompanyInfo.empty(),
  );
}