public virtual PaymentPlan ToModel(PaymentPlan paymentPlan) { if (paymentPlan == null) { throw new ArgumentNullException("paymentPlan"); } paymentPlan.InjectFrom(this); paymentPlan.Interval = EnumUtility.SafeParse <PaymentInterval>(this.Interval, PaymentInterval.Months); return(paymentPlan); }