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