public protocol EncodableAction : Action, Encodable

An Action which can be encoded.

  • encode(with:) Default implementation

    To enable encoding of the Action this helper function is needed.

    JSONEncoder can’t encode an Encodable type unless it has the specific type. By using an extension of the Action we have this specific type and can encode it.

    Default Implementation



    func encode(with encoder: JSONEncoder) -> Data?