filter property

dynamic filter
final

Use the filter option to restrict which keys will be included in the encoded output. If you pass a Function, it will be called for each key to obtain the replacement value. If you pass a List, it will be used to select properties and List indices to be encoded.

Implementation

final dynamic filter;