parse Resource
Takes an existing Resource in the form of a json string and parses it into a Resource object. Validates object structure and performs an integrity check using the resource signature.
Return
The json string parsed into a concrete Resource implementation.
Parameters
payload
The resource as a json string.
Throws
if the payload signature verification fails.