@@ -213,6 +213,18 @@ public class DrawingObjectInsert : Codable, WordsApiModel {
213213 }
214214 }
215215
216+ // Field of aspectRatioLocked. Drawing object element for insert.
217+ private var _aspectRatioLocked : Bool ? = nil ;
218+
219+ public var aspectRatioLocked : Bool ? {
220+ get {
221+ return self . _aspectRatioLocked;
222+ }
223+ set {
224+ self . _aspectRatioLocked = newValue;
225+ }
226+ }
227+
216228 private enum CodingKeys : String , CodingKey {
217229 case position = " Position " ;
218230 case relativeHorizontalPosition = " RelativeHorizontalPosition " ;
@@ -222,6 +234,7 @@ public class DrawingObjectInsert : Codable, WordsApiModel {
222234 case width = " Width " ;
223235 case height = " Height " ;
224236 case wrapType = " WrapType " ;
237+ case aspectRatioLocked = " AspectRatioLocked " ;
225238 case invalidCodingKey;
226239 }
227240
@@ -249,6 +262,7 @@ public class DrawingObjectInsert : Codable, WordsApiModel {
249262 self . wrapType = WrapType ( rawValue: raw_wrapType) ;
250263 }
251264
265+ self . aspectRatioLocked = json [ " AspectRatioLocked " ] as? Bool ;
252266 }
253267
254268 public required init ( from decoder: Decoder ) throws {
@@ -261,6 +275,7 @@ public class DrawingObjectInsert : Codable, WordsApiModel {
261275 self . width = try container. decodeIfPresent ( Double . self, forKey: . width) ;
262276 self . height = try container. decodeIfPresent ( Double . self, forKey: . height) ;
263277 self . wrapType = try container. decodeIfPresent ( WrapType . self, forKey: . wrapType) ;
278+ self . aspectRatioLocked = try container. decodeIfPresent ( Bool . self, forKey: . aspectRatioLocked) ;
264279 }
265280
266281 public func encode( to encoder: Encoder ) throws {
@@ -289,6 +304,9 @@ public class DrawingObjectInsert : Codable, WordsApiModel {
289304 if ( self . wrapType != nil ) {
290305 try container. encode ( self . wrapType, forKey: . wrapType) ;
291306 }
307+ if ( self . aspectRatioLocked != nil ) {
308+ try container. encode ( self . aspectRatioLocked, forKey: . aspectRatioLocked) ;
309+ }
292310 }
293311
294312 public func collectFilesContent( _ resultFilesContent : inout [ FileReference ] ) {
@@ -421,4 +439,16 @@ public class DrawingObjectInsert : Codable, WordsApiModel {
421439 public func getWrapType( ) -> WrapType ? {
422440 return self . wrapType;
423441 }
442+
443+
444+ // Sets aspectRatioLocked. Gets or sets a value indicating whether AspectRatioLocked option on or off.
445+ public func setAspectRatioLocked( aspectRatioLocked : Bool ? ) -> DrawingObjectInsert {
446+ self . aspectRatioLocked = aspectRatioLocked;
447+ return self ;
448+ }
449+
450+ // Gets aspectRatioLocked. Gets or sets a value indicating whether AspectRatioLocked option on or off.
451+ public func getAspectRatioLocked( ) -> Bool ? {
452+ return self . aspectRatioLocked;
453+ }
424454}
0 commit comments