YMJSONDataEncodable

public protocol YMJSONDataEncodable : Encodable

Documentation Coming Soon…

  • getJSONData() Default implementation

    Encodes the value to JSON Data using JSONEncoder.

    • If something goes wrong, the method throws.

    Default Implementation

    Declaration

    Swift

    func getJSONData() throws -> Data
  • jsonData Default implementation

    Encodes the value to optional JSON Data using JSONEncoder.

    • If something goes wrong, nil is returned.

    Default Implementation

    Declaration

    Swift

    var jsonData: Data? { get }