Fill object from array