public static ServiceStack.Translators.Generator.Tests.Support.DataContract.PhoneNumber ToDtoPhoneNumber(this ServiceStack.Translators.Generator.Tests.Support.Model.PhoneNumber from)
		{
			if ((from == null))
			{
				return null;
			}
			ServiceStack.Translators.Generator.Tests.Support.DataContract.PhoneNumber to = new ServiceStack.Translators.Generator.Tests.Support.DataContract.PhoneNumber();
			if ((from.Type != null))
			{
				to.Type = from.Type.ToString();
			}
			to.Number = from.Number;
			return to;
		}
 public static ServiceStack.Translators.Generator.Tests.Support.Model.PhoneNumber ToPhoneNumber(this ServiceStack.Translators.Generator.Tests.Support.DataContract.PhoneNumber from)
 {
     return(PhoneNumberServiceModelTranslator.UpdatePhoneNumber(from, new ServiceStack.Translators.Generator.Tests.Support.Model.PhoneNumber()));
 }
 public static ServiceStack.Translators.Generator.Tests.Support.DataContract.PhoneNumber ToPhoneNumber(this ServiceStack.Translators.Generator.Tests.Support.Model.PhoneNumber from)
 {
     if ((from == null))
     {
         return(null);
     }
     ServiceStack.Translators.Generator.Tests.Support.DataContract.PhoneNumber to = new ServiceStack.Translators.Generator.Tests.Support.DataContract.PhoneNumber();
     if ((from.Type != null))
     {
         to.Type = from.Type.ToString();
     }
     to.Number = from.Number;
     return(to);
 }
 public static ServiceStack.Translators.Generator.Tests.Support.Model.PhoneNumber UpdatePhoneNumber(this ServiceStack.Translators.Generator.Tests.Support.DataContract.PhoneNumber fromParam, ServiceStack.Translators.Generator.Tests.Support.Model.PhoneNumber to)
 {
     ServiceStack.Translators.Generator.Tests.Support.DataContract.PhoneNumber from = fromParam;
     to.Type   = ServiceStack.Common.Utils.StringConverterUtils.Parse <ServiceStack.Translators.Generator.Tests.Support.Model.PhoneNumberType>(from.Type);
     to.Number = from.Number;
     return(to);
 }
 public static System.Collections.Generic.List <ServiceStack.Translators.Generator.Tests.Support.Model.PhoneNumber> ToPhoneNumbers(this System.Collections.Generic.IEnumerable <ServiceStack.Translators.Generator.Tests.Support.DataContract.PhoneNumber> from)
 {
     if ((from == null))
     {
         return(null);
     }
     System.Collections.Generic.List <ServiceStack.Translators.Generator.Tests.Support.Model.PhoneNumber> to = new System.Collections.Generic.List <ServiceStack.Translators.Generator.Tests.Support.Model.PhoneNumber>();
     for (System.Collections.Generic.IEnumerator <ServiceStack.Translators.Generator.Tests.Support.DataContract.PhoneNumber> iter = from.GetEnumerator(); iter.MoveNext();
          )
     {
         ServiceStack.Translators.Generator.Tests.Support.DataContract.PhoneNumber item = iter.Current;
         if ((item != null))
         {
             to.Add(item.ToPhoneNumber());
         }
     }
     return(to);
 }
 public virtual ServiceStack.Translators.Generator.Tests.Support.Model.PhoneNumber UpdatePhoneNumber(ServiceStack.Translators.Generator.Tests.Support.Model.PhoneNumber model)
 {
     ServiceStack.Translators.Generator.Tests.Support.DataContract.PhoneNumber from = this;
     model.Type   = ServiceStack.Common.Utils.StringConverterUtils.Parse <ServiceStack.Translators.Generator.Tests.Support.Model.PhoneNumberType>(from.Type);
     model.Number = from.Number;
     return(model);
 }