toJson method
Implementation
@override
Object toJson() => {
if (searchKey.isNotDefault) 'searchKey': searchKey,
if (contentsExample case final contentsExample?)
'contentsExample': contentsExample.toJson(),
if (searchKeyGenerationMethod case final searchKeyGenerationMethod?)
'searchKeyGenerationMethod': searchKeyGenerationMethod.toJson(),
};