Asset
public struct Asset : Decodable, Identifiable
Places are shared content assets that are tagged so they can appear in a variety of places on NPS.gov. Data includes a title, image, short description of the content, and link to more information about the asset.
-
Uniquely identifies place record
Declaration
Swift
public let id: String
-
Short description of the content
Declaration
Swift
public let listingDescription: String
-
mall image that accompanies the short description
Declaration
Swift
public let listingImage: NpsImage
-
Asset title
Declaration
Swift
public let title: String
-
Link to more information about the asset, if available
Declaration
Swift
public let url: URL?
-
Declaration
Swift
public init(from decoder: Decoder) throws