class SignupOtpRequest {
  String username = "";
  String obpPincode = "";
  String obpPintype = "";
  String email = "";
  String cmpCustcode = "";
  String pctCstycode = "";
  String channelCode = "";
  String porOrgacode = "";

  SignupOtpRequest({
    this.username = "",
    this.obpPincode = "",
    this.obpPintype = "",
    this.email = "",
    this.cmpCustcode = "",
    this.pctCstycode = "",
    this.channelCode = "",
    this.porOrgacode = "",
  });

  SignupOtpRequest.empty()
      : this.obpPincode = "",
        this.username = "",
        this.obpPintype = "",
        this.email = "",
        this.cmpCustcode = "",
        this.pctCstycode = "",
        this.channelCode = "",
        this.porOrgacode = "";

  Map<String, dynamic> toMap() {
    return {
      'username': username,
      'obpPincode': this.obpPincode,
      'obpPintype': this.obpPintype,
      'email': this.email,
      'cmpCustcode': this.cmpCustcode,
      'pctCstycode': this.pctCstycode,
      'channelCode': this.channelCode,
      'porOrgacode': this.porOrgacode,
    };
  }

  factory SignupOtpRequest.fromMap(Map<String, dynamic> map) {
    return SignupOtpRequest(
      username: map['username'],
      obpPincode: map['obpPincode'] ?? "",
      obpPintype: map['obpPintype'] ?? "",
      email: map['email'] ?? "",
      cmpCustcode: map['cmpCustcode'] ?? "",
      pctCstycode: map['pctCstycode'] ?? "",
      channelCode: map['channelCode'] ?? "",
      porOrgacode: map['porOrgacode'] ?? "",
    );
  }

  @override
  String toString() {
    return 'SignupOtpRequest{obpPincode: $obpPincode, username: $username, obpPintype: $obpPintype, email: $email, cmpCustcode: $cmpCustcode, pctCstycode: $pctCstycode, channelCode: $channelCode, porOrgacode: $porOrgacode}';
  }
}
