iOS/Sources/Shared/API/Responses/MobileAppConfig/MobileAppConfigPush.swift
mat1th 113d4fe18f
Update dependecy and cleanup code (#2581)
## Summary
This pr intruduces the following changes: 
- Upgrades the [Alomofire
dependecy](142efae0cc).
- Removes not needed [available
anotations](a4e71a3c88)
and split up code in multiple files; The anotations are not needed since
https://github.com/home-assistant/iOS/pull/2469.

## Screenshots
No user faceing changes

## Link to pull request in Documentation repository
NA

## Any other notes
NA
2024-02-23 15:04:00 +01:00

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: [])
}
}