Add enum example to README

This commit is contained in:
Oleksii Dykan
2018-01-18 14:23:43 +01:00
committed by GitHub
parent 6a6fcc1d07
commit 31ecb57f14

View File

@@ -11,6 +11,10 @@ This library helps you to use your custom types that conform to `Codable` protoc
```swift
struct Model: Codable {
enum MyEnum: Int, Codable {
case one, two, three
}
let stringExample: String
let booleanExample: Bool
let numberExample: Double
@@ -18,6 +22,7 @@ struct Model: Codable {
let arrayExample: [String]
let nullExample: Int?
let objectExample: [String: String]
let myEnum: MyEnum
}
```