StructuredQuery_Projection.fromJson constructor
StructuredQuery_Projection.fromJson(
- Object? j
Implementation
factory StructuredQuery_Projection.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return StructuredQuery_Projection(
fields: switch (json['fields']) {
null => [],
List<Object?> $1 => [
for (final i in $1) StructuredQuery_FieldReference.fromJson(i),
],
_ => throw const FormatException('"fields" is not a list'),
},
);
}