Extracts the full state object from a parsed shadow payload.
Parsed shadow document (or null)
The state object (reported + desired), or {} when absent / non-object
{}
Extracts the full state object from a parsed shadow payload.