toJson method

  1. @override
Object toJson()
override

Implementation

@override
Object toJson() {
  return {
    if (avroSource != null) 'avroSource': avroSource!.toJson(),
    if (bigquerySource != null) 'bigquerySource': bigquerySource!.toJson(),
    if (csvSource != null) 'csvSource': csvSource!.toJson(),
    if (featureTimeField != null) 'featureTimeField': featureTimeField,
    if (featureTime != null) 'featureTime': featureTime!.toJson(),
    'entityType': entityType,
    if (entityIdField.isNotDefault) 'entityIdField': entityIdField,
    'featureSpecs': encodeList(featureSpecs),
    if (disableOnlineServing.isNotDefault)
      'disableOnlineServing': disableOnlineServing,
    if (workerCount.isNotDefault) 'workerCount': workerCount,
    if (disableIngestionAnalysis.isNotDefault)
      'disableIngestionAnalysis': disableIngestionAnalysis,
  };
}