@override Object toJson() => { 'contents': encodeList(contents), if (searchKeyGenerationMethod != null) 'searchKeyGenerationMethod': searchKeyGenerationMethod!.toJson(), };