PaymentModeModel.fromJson constructor

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

Implementation

PaymentModeModel.fromJson(Map<String, dynamic> json) {
  status = json['status'];
  message = json['message'];
  timeStamp = json['timeStamp'];
  if (json['data'] != null) {
    data = <PaymentData>[];
    json['data'].forEach((v) {
      data!.add(new PaymentData.fromJson(v));
    });
  }
  requestId = json['requestId'];
  correlationId = json['correlationId'];
  code = json['code'];
  errors = json['errors'];
}