@@ -112,11 +112,11 @@ func (m *SecurityListModel) toUpdateRequest() (*kbapi.UpdateListJSONRequestBody,
112112func (m * SecurityListModel ) fromAPI (ctx context.Context , apiList * kbapi.SecurityListsAPIList ) diag.Diagnostics {
113113 var diags diag.Diagnostics
114114
115- m .ID = types . StringValue ( string ( apiList .Id ) )
116- m .ListID = types . StringValue ( string ( apiList .Id ) )
117- m .Name = types . StringValue ( string ( apiList .Name ) )
118- m .Description = types . StringValue ( string ( apiList .Description ) )
119- m .Type = types . StringValue ( string ( apiList .Type ) )
115+ m .ID = utils . StringishValue ( apiList .Id )
116+ m .ListID = utils . StringishValue ( apiList .Id )
117+ m .Name = utils . StringishValue ( apiList .Name )
118+ m .Description = utils . StringishValue ( apiList .Description )
119+ m .Type = utils . StringishValue ( apiList .Type )
120120 m .Immutable = types .BoolValue (apiList .Immutable )
121121 m .Version = types .Int64Value (int64 (apiList .Version ))
122122 m .TieBreakerID = types .StringValue (apiList .TieBreakerId )
@@ -127,19 +127,19 @@ func (m *SecurityListModel) fromAPI(ctx context.Context, apiList *kbapi.Security
127127
128128 // Set optional _version field
129129 if apiList .UnderscoreVersion != nil {
130- m .VersionID = types . StringValue ( string ( * apiList .UnderscoreVersion ) )
130+ m .VersionID = utils . StringishPointerValue ( apiList .UnderscoreVersion )
131131 } else {
132132 m .VersionID = types .StringNull ()
133133 }
134134
135135 if apiList .Deserializer != nil {
136- m .Deserializer = types . StringValue ( string ( * apiList .Deserializer ) )
136+ m .Deserializer = utils . StringishPointerValue ( apiList .Deserializer )
137137 } else {
138138 m .Deserializer = types .StringNull ()
139139 }
140140
141141 if apiList .Serializer != nil {
142- m .Serializer = types . StringValue ( string ( * apiList .Serializer ) )
142+ m .Serializer = utils . StringishPointerValue ( apiList .Serializer )
143143 } else {
144144 m .Serializer = types .StringNull ()
145145 }
0 commit comments