JSONRepresentable

public protocol JSONRepresentable: JSONDeserializer

A protocol for types that deserialize themselves from JSON.

Helps reduces boilerplate for types that deserialize themselves from a single source type. Using this protocol you only have to:

  • specify the JSONRepresentation type
  • implement init(jsonData:)

For an example, see UsageTests.swift.