error: Error? static func loading() -> ProcessListViewState { return ProcessListViewState(loading: true, processes: nil, error: nil) } static func loaded(with processes: [Process]) -> ProcessListViewState { return ProcessListViewState(loading: false, processes: processes, error: nil) } static func error(with error: Error) -> ProcessListViewState { return ProcessListViewState(loading: false, processes: nil, error: error) } }