def create_array(self, json):
        """Create :class:`.resources.Array` from JSON.

        :param json: JSON dict.
        :return: Array instance.
        """
        result = Array(json['sys'])
        result.total = json['total']
        result.skip = json['skip']
        result.limit = json['limit']
        result.items = []
        result.items_mapped = {'Asset': {}, 'Entry': {}}

        self.process_array_items(result, json)
        self.process_array_includes(result, json)

        return result
def create_array ( self , json ) : result = Array ( json [ 'sys' ] ) result . total = json [ 'total' ] result . skip = json [ 'skip' ] result . limit = json [ 'limit' ] result . items = [ ] result . items_mapped = { 'Asset' : { } , 'Entry' : { } } self . process_array_items ( result , json ) self . process_array_includes ( result , json ) return result
Create :class:`.resources.Array` from JSON.

        :param json: JSON dict.
        :return: Array instance.