Adding actiontype attribute to encode in OpenPage action class
This commit is contained in:
parent
dcbaa316ac
commit
aff3d52fe8
@ -98,6 +98,7 @@ public struct ActionOpenPageModel: ActionModelProtocol, ActionOpenPageProtocol,
|
|||||||
public func encode(to encoder: Encoder) throws {
|
public func encode(to encoder: Encoder) throws {
|
||||||
var container = encoder.container(keyedBy: CodingKeys.self)
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
||||||
try container.encode(pageType, forKey: .pageType)
|
try container.encode(pageType, forKey: .pageType)
|
||||||
|
try container.encode(actionType, forKey: .actionType)
|
||||||
try container.encodeIfPresent(baseURL, forKey: .baseURL)
|
try container.encodeIfPresent(baseURL, forKey: .baseURL)
|
||||||
try container.encodeIfPresent(appContext, forKey: .appContext)
|
try container.encodeIfPresent(appContext, forKey: .appContext)
|
||||||
try container.encodeIfPresent(requestURL, forKey: .requestURL)
|
try container.encodeIfPresent(requestURL, forKey: .requestURL)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user