Serializer
@available(iOS 9.0, *)
public class Serializer
The Serializer
class is used to serialize a PhotoEditModel
object into a Data
object.
-
Serializes a
PhotoEditModel
object into aData
object.Declaration
Swift
public static func serialize(_ model: PhotoEditModel, with photo: PhotoRepresentation, includeImageData: Bool) -> Data?
Parameters
model
The model to serialize.
photo
A
PhotoRepresentation
object to pass to the serializer.includeImageData
Whether to include the image data in the returned
Data
object.Return Value
The serialized
PhotoEditModel
object, optionally also containing the photo.