toJson method

  1. @override
Object toJson()
override

Implementation

@override
Object toJson() {
  return {
    'model': model,
    if (content != null) 'content': content!.toJson(),
    if (taskType != null) 'taskType': taskType!.toJson(),
    if (title != null) 'title': title,
    if (outputDimensionality != null)
      'outputDimensionality': outputDimensionality,
  };
}