toJson method

  1. @override
Object toJson()
override

Implementation

@override
Object toJson() => {
  if (dataset case final dataset?) 'dataset': dataset,
  if (gcsSource case final gcsSource?) 'gcsSource': gcsSource.toJson(),
  if (bigquerySource case final bigquerySource?)
    'bigquerySource': bigquerySource.toJson(),
  if (dataFormat.isNotDefault) 'dataFormat': dataFormat,
  if (targetField.isNotDefault) 'targetField': targetField,
  if (loggingSamplingStrategy case final loggingSamplingStrategy?)
    'loggingSamplingStrategy': loggingSamplingStrategy.toJson(),
};