Parser
public protocol Parser
Defines types and method required to parse and convert any type T
to a type U
.
-
parsed(resources:)
Extension methodExtension of the
parse(_:)
method, which reads JSON arrays fromLaunchEnvironmentResource
and returns a list of objects converted byparse(_:)
method.Throws
Rethrow an error throwed byparse(_:)
method.Declaration
Swift
public func parsed(resources: [LaunchEnvironmentResource]) throws -> [Self.U]
Parameters
resources
A list of resources to parse.
Return Value
A list of converted objects.