public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.CreditInstrument serial_CreditInstrument = serial_Class as FpmlSerializedCSharp.CreditInstrument;

            FpmlSerializedCSharp.IssueInformation serial_issueInformation = serial_CreditInstrument.IssueInformation_;
            string issueInformationtype = serial_issueInformation.Excel_type_.ValueStr;

            this.issueInformationViewModel_ = IssueInformationViewModel.CreateIssueInformation(issueInformationtype);
            this.issueInformationViewModel_.setFromSerial(serial_issueInformation);

            FpmlSerializedCSharp.UnderlyingInformation serial_underlyingInformation = serial_CreditInstrument.UnderlyingInformation_;
            string underlyingInformationtype = serial_underlyingInformation.Excel_type_.ValueStr;

            this.underlyingInformationViewModel_ = UnderlyingInformationViewModel.CreateUnderlyingInformation(underlyingInformationtype);
            this.underlyingInformationViewModel_.setFromSerial(serial_underlyingInformation);

            FpmlSerializedCSharp.CreditPayoffInfo serial_creditPayoffInfo = serial_CreditInstrument.CreditPayoffInfo_;
            string creditPayoffInfotype = serial_creditPayoffInfo.Excel_type_.ValueStr;

            this.creditPayoffInfoViewModel_ = CreditPayoffInfoViewModel.CreateCreditPayoffInfo(creditPayoffInfotype);
            this.creditPayoffInfoViewModel_.setFromSerial(serial_creditPayoffInfo);
        }
 public  void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
 {
     FpmlSerializedCSharp.CreditInstrument serial_CreditInstrument = serial_Class as FpmlSerializedCSharp.CreditInstrument;
 
     FpmlSerializedCSharp.IssueInformation serial_issueInformation = serial_CreditInstrument.IssueInformation_;
     string issueInformationtype = serial_issueInformation.Excel_type_.ValueStr;
     this.issueInformationViewModel_ = IssueInformationViewModel.CreateIssueInformation(issueInformationtype);
     this.issueInformationViewModel_.setFromSerial(serial_issueInformation);
     
     FpmlSerializedCSharp.UnderlyingInformation serial_underlyingInformation = serial_CreditInstrument.UnderlyingInformation_;
     string underlyingInformationtype = serial_underlyingInformation.Excel_type_.ValueStr;
     this.underlyingInformationViewModel_ = UnderlyingInformationViewModel.CreateUnderlyingInformation(underlyingInformationtype);
     this.underlyingInformationViewModel_.setFromSerial(serial_underlyingInformation);
     
     FpmlSerializedCSharp.CreditPayoffInfo serial_creditPayoffInfo = serial_CreditInstrument.CreditPayoffInfo_;
     string creditPayoffInfotype = serial_creditPayoffInfo.Excel_type_.ValueStr;
     this.creditPayoffInfoViewModel_ = CreditPayoffInfoViewModel.CreateCreditPayoffInfo(creditPayoffInfotype);
     this.creditPayoffInfoViewModel_.setFromSerial(serial_creditPayoffInfo);
     
 }