toJson method
Implementation
@override
Object toJson() => {
'contents': [for (final i in contents) i.toJson()],
if (searchKeyGenerationMethod case final searchKeyGenerationMethod?)
'searchKeyGenerationMethod': searchKeyGenerationMethod.toJson(),
};