RunQueryRequest.fromJson constructor
RunQueryRequest.fromJson(
- Object? j
Implementation
factory RunQueryRequest.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return RunQueryRequest(
parent: switch (json['parent']) {
null => '',
Object $1 => decodeString($1),
},
structuredQuery: switch (json['structuredQuery']) {
null => null,
Object $1 => StructuredQuery.fromJson($1),
},
transaction: switch (json['transaction']) {
null => null,
Object $1 => decodeBytes($1),
},
newTransaction: switch (json['newTransaction']) {
null => null,
Object $1 => TransactionOptions.fromJson($1),
},
readTime: switch (json['readTime']) {
null => null,
Object $1 => Timestamp.fromJson($1),
},
explainOptions: switch (json['explainOptions']) {
null => null,
Object $1 => ExplainOptions.fromJson($1),
},
);
}