toJson method

  1. @override
Object toJson()
override

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(),
};