moshi custom qualifier annotation to serialise null on one property only
问题 I'd like to serialise null for only one property in my JSON body that is going on a PUT. I don't want to serialize null for any other types in the object. Model class is like this @Parcel class User @ParcelConstructor constructor(var college: College?, var firstname: String?, var lastname: String?, var email: String?, var active: Boolean = true, var updatedAt: String?, var gender: String?, var picture: String?, var id: String?, @field: [CollegeField] var collegeInput: String?, @field: