class to struct
This commit is contained in:
parent
c4f8bd955b
commit
3739812379
@ -69,7 +69,7 @@ public struct ActionOpenPageModel: ActionModelProtocol, ActionOpenPageProtocol,
|
||||
case customTimeoutTime
|
||||
}
|
||||
|
||||
required public init(from decoder: Decoder) throws {
|
||||
public init(from decoder: Decoder) throws {
|
||||
let typeContainer = try decoder.container(keyedBy: CodingKeys.self)
|
||||
pageType = try typeContainer.decode(String.self, forKey: .pageType)
|
||||
baseURL = try typeContainer.decodeIfPresent(URL.self, forKey: .baseURL)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user