ModelObject

public class ModelObject : Object, Mappable

The root class of all model objects.

Inherits from:

RealmSwift’s Object

Conforms to:

Mappable

  • Initializes the class from a JSON object.

    Declaration

    Swift

    public convenience init(json: JSON)
    Parameters
    json

    A JSON (SwiftyJSON) object

  • Returns a realm detached copy of a live realm object. An unmanaged object is not connected to realm and will not be auto updated and can be passed around threads.

    Declaration

    Swift

    public func unmanaged() -> Self