Since the charger is charging other phones effectively, then the problem is with your phone`s charging slot. We recommend visiting the nearest Samsung Service Center and our engineers will determine the source of the problem and solve it for you.
Check in setting , battery mode. Whether you have enable the fast charging mode is ON or OFF,
Check your end portion cable which goes inside your mobile charging slot. Plug in and then observe. Whether connections is loose or not. If so, take it to the repair shop.