Method
serialize(_:to:)
Serialize a Resource to a JSON file
func serialize(_ resource: Resource, to url: URL) async throws
Parameters
resource-
The Resource containing objects to serialize
url-
The URL where the JSON file should be written