BigQueryOptions.fromJson constructor

BigQueryOptions.fromJson(
  1. Object? j
)

Implementation

factory BigQueryOptions.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return BigQueryOptions(
    usePartitionedTables: switch (json['usePartitionedTables']) {
      null => false,
      Object $1 => decodeBool($1),
    },
    usesTimestampColumnPartitioning:
        switch (json['usesTimestampColumnPartitioning']) {
          null => false,
          Object $1 => decodeBool($1),
        },
  );
}