toJson method

  1. @override
Object toJson()
override

Implementation

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