class TransactionPinRequestModel {
  String porOrgacode = "";
  String pctCstycode = "";
  String channelCode = "";
  String cmpCustcode = "";
  String email = "";
  String pinType = "";
  String transPincode = "";
  bool isOtpRequired = false;

  TransactionPinRequestModel({
    this.porOrgacode = "",
    this.pctCstycode = "",
    this.channelCode = "",
    this.cmpCustcode = "",
    this.email = "",
    this.pinType = "",
    this.transPincode = "",
    this.isOtpRequired = false,
  });
  TransactionPinRequestModel.empty():this.porOrgacode = "",
        this.pctCstycode = "",
        this.channelCode = "",
        this.cmpCustcode = "",
        this.email = "",
        this.pinType = "",
        this.transPincode = "",
        this.isOtpRequired = false;

  factory TransactionPinRequestModel.fromMap(Map<String, dynamic> map) {
    return TransactionPinRequestModel(
      porOrgacode: map['porOrgacode'] ?? "",
      pctCstycode: map['pctCstycode'] ?? "",
      channelCode: map['channelCode'] ?? "",
      cmpCustcode: map['cmpCustcode'] ?? "",
      email: map['email'] ?? "",
      pinType: map['pinType'] ?? "",
      transPincode: map['transPincode'] ?? "",
      isOtpRequired: map['isOtpRequired'] ?? false,
    );
  }

  Map<String, dynamic> toMap() {
    return {
      'porOrgacode': porOrgacode,
      'pctCstycode': pctCstycode,
      'channelCode': channelCode,
      'cmpCustcode': cmpCustcode,
      'email': email,
      'pinType': pinType,
      'transPincode': transPincode,
      'isOtpRequired': isOtpRequired,
    };
  }

  @override
  String toString() {
    return 'TransactionPinRequestModel{porOrgacode: $porOrgacode, pctCstycode: $pctCstycode, channelCode: $channelCode, cmpCustcode: $cmpCustcode, email: $email, pinType: $pinType, transPincode: $transPincode, isOtpRequired: $isOtpRequired}';
  }
}

