class TransactionRequestModel {
  String porOrgacode = "";
  String pctCstycode = "";
  String channelCode = "";
  String cmpCustcode = "";
  String obpPincode = "";
  String otdTrancomment = "";
  String otdTranrequestid = "";

  TransactionRequestModel({
    this.porOrgacode = "",
    this.pctCstycode = "",
    this.channelCode = "",
    this.cmpCustcode = "",
    this.obpPincode = "",
    this.otdTrancomment = "",
    this.otdTranrequestid = "",
  });

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

  factory TransactionRequestModel.fromMap(Map<String, dynamic> map) {
    return TransactionRequestModel(
      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'
        '}';
  }
}
