function getmap() public view returns(LockUser[] memory){ LockUser[] memory datalock; LockUser memory u1 = LockUser(true,true); datalock[0] = u1; LockUser memory u2 = LockUser(true,false); datalock[1] = u2; LockUser memory u3 = LockUser(true,false); datalock[2] = u3; return datalock; }