connectionStatus property Null safety

  1. @JsonKey(name: 'is_online', fromJson: boolToConnectionStatus, toJson: connectionStatusToBool)
UserConnectionStatus connectionStatus
read / write

This user's connection status

Implementation

@JsonKey(
  name: 'is_online',
  fromJson: boolToConnectionStatus,
  toJson: connectionStatusToBool,
)
UserConnectionStatus connectionStatus;