How to only send updated data to API


I have created a user profile with many different fields which are planned to be bound to a firebase DB. When a user wants to edit some information they can change inputs field (including leaving it blank) and then below save it. Once saved, the changed fields should be updated in firebase. How can I make the logic so only changed fields are requested to be changed (including phone list)?

Thanks a ton!!