public static Product From(Shopify.Product source) { var dest = new Product { ShopifyId = source.Id }; dest.Merge(source); return(dest); }
/// <summary> /// Merge fields from source into this. /// </summary> /// <param name="source"></param> public void Merge(Shopify.Product source) { Title = source.Title; Description = source.BodyHtml; Tags = source.Tags; }