FeatureGroup_BigQuery.fromJson constructor

FeatureGroup_BigQuery.fromJson(
  1. Object? j
)

Implementation

factory FeatureGroup_BigQuery.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return FeatureGroup_BigQuery(
    bigQuerySource: switch (json['bigQuerySource']) {
      null => null,
      Object $1 => BigQuerySource.fromJson($1),
    },
    entityIdColumns: switch (json['entityIdColumns']) {
      null => [],
      List<Object?> $1 => [for (final i in $1) decodeString(i)],
      _ => throw const FormatException('"entityIdColumns" is not a list'),
    },
    staticDataSource: switch (json['staticDataSource']) {
      null => false,
      Object $1 => decodeBool($1),
    },
    timeSeries: switch (json['timeSeries']) {
      null => null,
      Object $1 => FeatureGroup_BigQuery_TimeSeries.fromJson($1),
    },
    dense: switch (json['dense']) {
      null => false,
      Object $1 => decodeBool($1),
    },
  );
}