refactor how Doc is populated from Response, since @fields may be null in dezi http response