Smartsheet.Api.Models.RowWrapper.InsertRowsBuilder.Build C# (CSharp) Method

Build() public method

Builds the RowWrapper.
public Build ( ) : RowWrapper
return RowWrapper
            public virtual RowWrapper Build()
            {
                if (toTop == null && toBottom == null && parentId == null && siblingId == null)
                {
                    new MemberAccessException("One of the following fields must be set toTop, toBottom, parentId or" + " sibling Id");
                }

                RowWrapper rowWrapper = new RowWrapper();
                rowWrapper.toTop = toTop;
                rowWrapper.toBottom = toBottom;
                rowWrapper.parentId = parentId;
                rowWrapper.siblingId = siblingId;
                rowWrapper.rows = rows;
                return rowWrapper;
            }