public function reverseMap($data): RoleCreateStruct
    {
        if (!$data instanceof RoleCreateData) {
            throw new InvalidArgumentException('data', 'must be an instance of ' . RoleCreateData::class);
        }

        return new RoleCreateStruct([
            'identifier' => $data->getIdentifier(),
        ]);
    }
public function reverseMap($data): RoleCreateStruct
    {
        if (!$data instanceof RoleCreateData) {
            throw new InvalidArgumentException('data', 'must be an instance of ' . RoleCreateData::class);
        }

        return new RoleCreateStruct([
            'identifier' => $data->getIdentifier(),
        ]);
    }
public function reverseMap ( $ data ) : RoleCreateStruct { if ( ! $ data instanceof RoleCreateData ) { throw new InvalidArgumentException ( 'data' , 'must be an instance of ' . RoleCreateData :: class ) ; } return new RoleCreateStruct ( [ 'identifier' => $ data -> getIdentifier ( ) , ] ) ; }
Maps given RoleCreateData object to a RoleCreateStruct object.

@param RoleCreateData $data

@return RoleCreateStruct

@throws InvalidArgumentException
Maps given RoleCreateData object to a RoleCreateStruct object .