BRSerializable

Objective-C

@protocol BRSerializable

Swift

protocol BRSerializable

All BlinkReceipt results objects implement this protocol in order to provide an easy method for serializing results into JSON (or other formats). You can call dictionaryForSerializing on any results object or sub-object and get an NSDictionary* that is suitable for serialization (i.e. contains no custom classes)

Methods

  • Retrieves a dictionary suitable for JSON (or other) serialization

    Declaration

    Objective-C

    - (NSDictionary *)dictionaryForSerializing;

    Swift

    func dictionaryForSerializing() -> [AnyHashable : Any]!
  • Declaration

    Objective-C

    + (instancetype)objectFromDictionary:(NSDictionary*)dict;

    Swift

    static func object(from dict: [AnyHashable : Any]!) -> Self!