Created
October 17, 2018 19:21
-
-
Save vialyx/f786ffde691ab6b926bc97e687415f44 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
enum TaskType: String, Codable { | |
case unknown | |
case activity | |
} | |
// MARK: - APIObjectMapping | |
extension TaskType: APIObjectMapping { | |
typealias Object = String | |
static func with(object: String?) -> TaskType? { | |
return TaskType(rawValue: object ?? "") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment