15 lines
353 B
Swift
15 lines
353 B
Swift
import Foundation
|
|
import ObjectMapper
|
|
|
|
public struct MobileAppConfigPush: ImmutableMappable {
|
|
public var categories: [MobileAppConfigPushCategory]
|
|
|
|
init(categories: [MobileAppConfigPushCategory] = []) {
|
|
self.categories = []
|
|
}
|
|
|
|
public init(map: Map) throws {
|
|
self.categories = map.value("categories", default: [])
|
|
}
|
|
}
|