public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.ProtectionTerms serial_ProtectionTerms = serial_Class as FpmlSerializedCSharp.ProtectionTerms;

            FpmlSerializedCSharp.CalculationAmount serial_calculationAmount = serial_ProtectionTerms.CalculationAmount_;
            string calculationAmounttype = serial_calculationAmount.Excel_type_.ValueStr;

            this.calculationAmountViewModel_ = CalculationAmountViewModel.CreateCalculationAmount(calculationAmounttype);
            this.calculationAmountViewModel_.setFromSerial(serial_calculationAmount);

            FpmlSerializedCSharp.CreditEvents serial_creditEvents = serial_ProtectionTerms.CreditEvents_;
            string creditEventstype = serial_creditEvents.Excel_type_.ValueStr;

            this.creditEventsViewModel_ = CreditEventsViewModel.CreateCreditEvents(creditEventstype);
            this.creditEventsViewModel_.setFromSerial(serial_creditEvents);

            FpmlSerializedCSharp.Obligations serial_obligations = serial_ProtectionTerms.Obligations_;
            string obligationstype = serial_obligations.Excel_type_.ValueStr;

            this.obligationsViewModel_ = ObligationsViewModel.CreateObligations(obligationstype);
            this.obligationsViewModel_.setFromSerial(serial_obligations);

            this.accrualCoupon_ = serial_ProtectionTerms.AccrualCoupon_.ValueStr;
        }
 public  void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
 {
     FpmlSerializedCSharp.ProtectionTerms serial_ProtectionTerms = serial_Class as FpmlSerializedCSharp.ProtectionTerms;
 
     FpmlSerializedCSharp.CalculationAmount serial_calculationAmount = serial_ProtectionTerms.CalculationAmount_;
     string calculationAmounttype = serial_calculationAmount.Excel_type_.ValueStr;
     this.calculationAmountViewModel_ = CalculationAmountViewModel.CreateCalculationAmount(calculationAmounttype);
     this.calculationAmountViewModel_.setFromSerial(serial_calculationAmount);
     
     FpmlSerializedCSharp.CreditEvents serial_creditEvents = serial_ProtectionTerms.CreditEvents_;
     string creditEventstype = serial_creditEvents.Excel_type_.ValueStr;
     this.creditEventsViewModel_ = CreditEventsViewModel.CreateCreditEvents(creditEventstype);
     this.creditEventsViewModel_.setFromSerial(serial_creditEvents);
     
     FpmlSerializedCSharp.Obligations serial_obligations = serial_ProtectionTerms.Obligations_;
     string obligationstype = serial_obligations.Excel_type_.ValueStr;
     this.obligationsViewModel_ = ObligationsViewModel.CreateObligations(obligationstype);
     this.obligationsViewModel_.setFromSerial(serial_obligations);
     
     this.accrualCoupon_ = serial_ProtectionTerms.AccrualCoupon_.ValueStr;
     
 }