Created
December 12, 2021 13:37
-
-
Save michzio/b6822e5c7e21da94eb3727c0408c260f to your computer and use it in GitHub Desktop.
SwiftUI MVVM architecture - DTO
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct WordsetCategoryDTO: Codable { | |
let categoryId: String | |
let foreignName: String | |
let nativeName: String | |
var image: String? | |
enum CodingKeys: String, CodingKey { | |
case categoryId = "cid" | |
case foreignName = "foreignName" | |
case nativeName = "nativeName" | |
case image | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment