urbanairship-core/src/main/java/com/urbanairship/iam/tags/TagGroupResponse.java
static TagGroupResponse fromResponse(@NonNull Response response) throws JsonException {
        if (response.getStatus() != 200) {
            return new TagGroupResponse(response.getStatus(), null, null);
        }

        JsonMap body = JsonValue.parseString(response.getResponseBody()).optMap();

        int status = response.getStatus();
        String lastModified = body.get(LAST_MODIFIED_KEY).getString();
        Map<String, Set<String>> tags = TagGroupUtils.parseTags(body.get(TAG_GROUPS_KEY));

        return new TagGroupResponse(status, tags, lastModified);
    }
/**
     * Factory method to create the response from a request response.
     *
     * @param response The request response.
     * @return A tag group response.
     */
Factory method to create the response from a request response.
@param response The request response.
@return A tag group response.
Factory method to create the response from a request response . @param response The request response . @return A tag group response .
static TagGroupResponse fromResponse(@NonNull Response response) throws JsonException {
        if (response.getStatus() != 200) {
            return new TagGroupResponse(response.getStatus(), null, null);
        }
        JsonMap body = JsonValue.parseString(response.getResponseBody()).optMap();
        int status = response.getStatus();
        String lastModified = body.get(LAST_MODIFIED_KEY).getString();
        Map<String, Set<String>> tags = TagGroupUtils.parseTags(body.get(TAG_GROUPS_KEY));
        return new TagGroupResponse(status, tags, lastModified);
    }
static TagGroupResponse fromResponse ( @ NonNull Response response ) throws JsonException { if ( response . getStatus ( ) != 200 ) { return new TagGroupResponse ( response . getStatus ( ) , null , null ) ; } JsonMap body = JsonValue . parseString ( response . getResponseBody ( ) ) . optMap ( ) ; int status = response . getStatus ( ) ; String lastModified = body . get ( LAST_MODIFIED_KEY ) . getString ( ) ; Map < String , Set < String > > tags = TagGroupUtils . parseTags ( body . get ( TAG_GROUPS_KEY ) ) ; return new TagGroupResponse ( status , tags , lastModified ) ; }
Factory method to create the response from a request response.
Factory method to create the response from a request response .