toJson method Null safety

Map<String, Object> toJson()

Implementation

Map<String, Object> toJson() {
  return <String, Object>{
    'initialState': _initialState,
    'keys': _keys,
  };
}