@@ -15,7 +15,7 @@ public class BaseModel<T>
1515 public string Uid { get ; set ; }
1616
1717
18- public BaseModel ( Stack stack , string fieldName , string uid = null )
18+ public BaseModel ( Stack stack , string fieldName , string ? uid = null )
1919 {
2020 stack . ThrowIfAPIKeyEmpty ( ) ;
2121 if ( fieldName == null )
@@ -27,15 +27,15 @@ public BaseModel(Stack stack, string fieldName, string uid = null)
2727 Uid = uid ;
2828 }
2929
30- public virtual ContentstackResponse Create ( T model , ParameterCollection collection = null )
30+ public virtual ContentstackResponse Create ( T model , ParameterCollection ? collection = null )
3131 {
3232 ThrowIfUidNotEmpty ( ) ;
3333
3434 var service = new CreateUpdateService < T > ( stack , resourcePath , model , this . fieldName , collection : collection , stjOptions : stack . client . SerializerOptions ) ;
3535 return stack . client . InvokeSync ( service ) ;
3636 }
3737
38- public virtual Task < ContentstackResponse > CreateAsync ( T model , ParameterCollection collection = null )
38+ public virtual Task < ContentstackResponse > CreateAsync ( T model , ParameterCollection ? collection = null )
3939 {
4040 ThrowIfUidNotEmpty ( ) ;
4141 stack . ThrowIfNotLoggedIn ( ) ;
@@ -45,15 +45,15 @@ public virtual Task<ContentstackResponse> CreateAsync(T model, ParameterCollecti
4545 return stack . client . InvokeAsync < CreateUpdateService < T > , ContentstackResponse > ( service ) ;
4646 }
4747
48- public virtual ContentstackResponse Update ( T model , ParameterCollection collection = null )
48+ public virtual ContentstackResponse Update ( T model , ParameterCollection ? collection = null )
4949 {
5050 ThrowIfUidEmpty ( ) ;
5151
5252 var service = new CreateUpdateService < T > ( stack , resourcePath , model , this . fieldName , "PUT" , collection : collection , stjOptions : stack . client . SerializerOptions ) ;
5353 return stack . client . InvokeSync ( service ) ;
5454 }
5555
56- public virtual Task < ContentstackResponse > UpdateAsync ( T model , ParameterCollection collection = null )
56+ public virtual Task < ContentstackResponse > UpdateAsync ( T model , ParameterCollection ? collection = null )
5757 {
5858 stack . ThrowIfNotLoggedIn ( ) ;
5959 ThrowIfUidEmpty ( ) ;
@@ -63,7 +63,7 @@ public virtual Task<ContentstackResponse> UpdateAsync(T model, ParameterCollecti
6363 return stack . client . InvokeAsync < CreateUpdateService < T > , ContentstackResponse > ( service ) ;
6464 }
6565
66- public virtual ContentstackResponse Fetch ( ParameterCollection collection = null )
66+ public virtual ContentstackResponse Fetch ( ParameterCollection ? collection = null )
6767 {
6868 stack . ThrowIfNotLoggedIn ( ) ;
6969 ThrowIfUidEmpty ( ) ;
@@ -72,7 +72,7 @@ public virtual ContentstackResponse Fetch(ParameterCollection collection = null)
7272 return stack . client . InvokeSync ( service ) ;
7373 }
7474
75- public virtual Task < ContentstackResponse > FetchAsync ( ParameterCollection collection = null )
75+ public virtual Task < ContentstackResponse > FetchAsync ( ParameterCollection ? collection = null )
7676 {
7777 stack . ThrowIfNotLoggedIn ( ) ;
7878 ThrowIfUidEmpty ( ) ;
@@ -81,7 +81,7 @@ public virtual Task<ContentstackResponse> FetchAsync(ParameterCollection collect
8181 return stack . client . InvokeAsync < FetchDeleteService , ContentstackResponse > ( service ) ;
8282 }
8383
84- public virtual ContentstackResponse Delete ( ParameterCollection collection = null )
84+ public virtual ContentstackResponse Delete ( ParameterCollection ? collection = null )
8585 {
8686 stack . ThrowIfNotLoggedIn ( ) ;
8787 ThrowIfUidEmpty ( ) ;
@@ -90,7 +90,7 @@ public virtual ContentstackResponse Delete(ParameterCollection collection = null
9090 return stack . client . InvokeSync ( service ) ;
9191 }
9292
93- public virtual Task < ContentstackResponse > DeleteAsync ( ParameterCollection collection = null )
93+ public virtual Task < ContentstackResponse > DeleteAsync ( ParameterCollection ? collection = null )
9494 {
9595 stack . ThrowIfNotLoggedIn ( ) ;
9696 ThrowIfUidEmpty ( ) ;
0 commit comments