RawRepresentable

protocol RawRepresentable
  • Creates a collection of RawRepresentable from a collection of raw values. Returns nil if an element in the array had an invalid raw value.

    Declaration

    Swift

    static func fromRawValues(rawValues: [RawValue]) -> [Self]?
  • Undocumented

    Declaration

    Swift

    protocol RawRepresentable
  • Encodes the reciever into JSON.

    Declaration

    Swift

    func toJSON() -> JSON.Value
  • Decodes the reciever from JSON.

    Declaration

    Swift

    init?(JSONValue: JSON.Value)