Adding actiontype attribute to encode in OpenPage action class

This commit is contained in:
Sumanth Nadigadda 2022-09-06 19:55:16 +05:30
parent dcbaa316ac
commit aff3d52fe8

View File

@ -98,6 +98,7 @@ public struct ActionOpenPageModel: ActionModelProtocol, ActionOpenPageProtocol,
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encode(pageType, forKey: .pageType)
try container.encode(actionType, forKey: .actionType)
try container.encodeIfPresent(baseURL, forKey: .baseURL)
try container.encodeIfPresent(appContext, forKey: .appContext)
try container.encodeIfPresent(requestURL, forKey: .requestURL)