You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For simple converters, creating an IPropertyConverter seems a bit overkill. It would be nice to specify a function as part of a decorator for serialization or deserialization.
For example:
@JsonProperty('wifi_signal')
@JsonDeserailizer((value)=>!value ? 0 : value*20)public wifiSignalStrength: number
@JsonProperty('wifi_signal')
@JsonSerializer((value)=>!value ? 0 : value/20)public wifiSignalStrength: number