QueryExecution.fromJson constructor
QueryExecution.fromJson(
- Map<String, dynamic> json
)
Implementation
factory QueryExecution.fromJson(Map<String, dynamic> json) {
return QueryExecution(
query: json['Query'] as String?,
queryExecutionContext: json['QueryExecutionContext'] != null
? QueryExecutionContext.fromJson(
json['QueryExecutionContext'] as Map<String, dynamic>)
: null,
queryExecutionId: json['QueryExecutionId'] as String?,
resultConfiguration: json['ResultConfiguration'] != null
? ResultConfiguration.fromJson(
json['ResultConfiguration'] as Map<String, dynamic>)
: null,
statementType: (json['StatementType'] as String?)?.toStatementType(),
statistics: json['Statistics'] != null
? QueryExecutionStatistics.fromJson(
json['Statistics'] as Map<String, dynamic>)
: null,
status: json['Status'] != null
? QueryExecutionStatus.fromJson(
json['Status'] as Map<String, dynamic>)
: null,
workGroup: json['WorkGroup'] as String?,
);
}