class SubmitTransactionRequestModel {
  final String porOrgacode;
  final String pctCstycode;
  final String channelCode;
  final String cmpCustcode;
  final String obpPincode;
  final String otdTrancomment;
  final String otdTranrequestid;

  SubmitTransactionRequestModel({
    required this.porOrgacode,
    required this.pctCstycode,
    required this.channelCode,
    required this.cmpCustcode,
    required this.obpPincode,
    required this.otdTrancomment,
    required this.otdTranrequestid,
  });

  Map<String, dynamic> toMap() {
    return {
      'porOrgacode': porOrgacode,
      'pctCstycode': pctCstycode,
      'channelCode': channelCode,
      'cmpCustcode': cmpCustcode,
      'obpPincode': obpPincode,
      'otdTrancomment': otdTrancomment,
      'otdTranrequestid': otdTranrequestid,
    };
  }

  factory SubmitTransactionRequestModel.fromMap(Map<String, dynamic> map) {
    return SubmitTransactionRequestModel(
      porOrgacode: map['porOrgacode'],
      pctCstycode: map['pctCstycode'],
      channelCode: map['channelCode'],
      cmpCustcode: map['cmpCustcode'],
      obpPincode: map['obpPincode'],
      otdTrancomment: map['otdTrancomment'],
      otdTranrequestid: map['otdTranrequestid'],
    );
  }

  @override
  String toString() {
    return 'TransactionRequestModel{porOrgacode: $porOrgacode, pctCstycode: $pctCstycode, '
        'channelCode: $channelCode, cmpCustcode: $cmpCustcode, obpPincode: $obpPincode, '
        'otdTrancomment: $otdTrancomment, otdTranrequestid: $otdTranrequestid}';
  }
}
