serialize method Null safety

  1. @mustCallSuper
Map<String, String> serialize()

Serializes common fields to JSON.

Methods that override serialize are expected to call super.serialize and add more fields to the returned Map.

Implementation

@mustCallSuper
Map<String, String> serialize() => <String, String>{
  'finderType': finderType,
};