SITMapperProtocol

Objective-C

@protocol SITMapperProtocol

Swift

protocol SITMapperProtocol

Protocol that describes the interface every object providing directions should conform to.

  • Call this method to map a class.

    Declaration

    Objective-C

    - (NSDictionary *)toDictionary;

    Swift

    func toDictionary() -> Any!

    Return Value

    Dictionary with values ​​of all properties of the class .

  • Call this method to obtain a instance of this class from a dictionary.

    Declaration

    Objective-C

    + (instancetype)fromDictionary:(NSDictionary *)dictionary;

    Swift

    static func fromDictionary(_ dictionary: Any!) -> Self!

    Return Value

    Dictionary with values ​​of all properties of the class .