Function toCheck

Convert backend API result to library result object to return in Client.createCheck method and toChecks function