Firebase serialization names

后端 未结 3 1483
轻奢々
轻奢々 2021-01-12 18:52

I created an object to send some data to firebase. As an example, I use firebase user example:

public class User {
    public String username;
    public Str         


        
3条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-12 19:58

    @PropertyName :

    Marks a field to be renamed when serialized. link

    you have to use @PropertyName with public fields and no need for getters/setters

提交回复
热议问题