Payload

Represents something that can be exchanged in JSON format.

<T> the type of the payload.

  • Transforms this payload to a JSON String representation.

    Declaration

    Swift

    func asJson() -> String
  • Transforms the passed in string JSON representation into this payloads type.

    Declaration

    Swift

    func fromJson(var json:String) -> T?

    Parameters

    json

    a string representation of this payloads type.

    Return Value

    T an instance of this payloads type.