IMobileMoneyProcessingRequestResponse.fromJson constructor

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

Implementation

factory IMobileMoneyProcessingRequestResponse.fromJson(
    Map<String, dynamic> json) {
  return IMobileMoneyProcessingRequestResponse(
    extraInfo: json.containsKey('extra_info')
        ? IExtraInfo.fromJson(json['extra_info'])
        : IExtraInfo.empty(),
    binStatus: json.containsKey('bin_status') && json['bin_status'] is String
        ? EApiResponseStatusCode.fromString(json['bin_status'])
        : EApiResponseStatusCode.bIN001,
    message: json.containsKey('message') ? json['message'] : "-",
    systemRef: json.containsKey('system_ref') ? json['system_ref'] : "-",
  );
}