diff --git a/WordPressKit/RemoteSiteDesign.swift b/WordPressKit/RemoteSiteDesign.swift index fabe92172..594448c62 100644 --- a/WordPressKit/RemoteSiteDesign.swift +++ b/WordPressKit/RemoteSiteDesign.swift @@ -33,7 +33,7 @@ public struct RemoteSiteDesign: Codable { public let mobileScreenshot: String? public let tabletScreenshot: String? public let themeSlug: String? - public let groups: [String]? + public let group: [String]? public let segmentID: Int64? public let categories: [RemoteSiteDesignCategory] @@ -45,7 +45,7 @@ public struct RemoteSiteDesign: Codable { case mobileScreenshot = "preview_mobile" case tabletScreenshot = "preview_tablet" case themeSlug = "theme" - case groups + case group case segmentID = "segment_id" case categories } @@ -59,7 +59,7 @@ public struct RemoteSiteDesign: Codable { mobileScreenshot = try? map.decode(String.self, forKey: .mobileScreenshot) tabletScreenshot = try? map.decode(String.self, forKey: .tabletScreenshot) themeSlug = try? map.decode(String.self, forKey: .themeSlug) - groups = try? map.decode([String].self, forKey: .groups) + group = try? map.decode([String].self, forKey: .group) segmentID = try? map.decode(Int64.self, forKey: .segmentID) categories = try map.decode([RemoteSiteDesignCategory].self, forKey: .categories) }