             }
             }.resume()
     }
-
-    public init() {}
 }
 
 /// Error type that Networking throws in case an unrecoverable error was encountered

    }
}

// MARK: - API service class
public final class APIService {

    /// Load API resource and convert json response into a dictionary model `T`
    public func load<T>(resource: APIResource<T>, completion: ((Result<T>) -> Void)? = nil) {

        if !resource.body.isEmpty {
            urlRequest.httpBody = try? JSONSerialization.data(withJSONObject: resource.body, options: [])
        }
        urlSession.dataTask(with: urlRequest) { data, _, error in

            switch error {
            case .some(let error as NSError) where error.code == NSURLErrorNotConnectedToInternet:
