toJson method

  1. @override
Object toJson()
override

Implementation

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