SendCommandResult.fromJson constructor

SendCommandResult.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory SendCommandResult.fromJson(Map<String, dynamic> json) {
  return SendCommandResult(
    abortTransaction: json['AbortTransaction'] != null
        ? AbortTransactionResult.fromJson(
            json['AbortTransaction'] as Map<String, dynamic>)
        : null,
    commitTransaction: json['CommitTransaction'] != null
        ? CommitTransactionResult.fromJson(
            json['CommitTransaction'] as Map<String, dynamic>)
        : null,
    endSession: json['EndSession'] != null
        ? EndSessionResult.fromJson(
            json['EndSession'] as Map<String, dynamic>)
        : null,
    executeStatement: json['ExecuteStatement'] != null
        ? ExecuteStatementResult.fromJson(
            json['ExecuteStatement'] as Map<String, dynamic>)
        : null,
    fetchPage: json['FetchPage'] != null
        ? FetchPageResult.fromJson(json['FetchPage'] as Map<String, dynamic>)
        : null,
    startSession: json['StartSession'] != null
        ? StartSessionResult.fromJson(
            json['StartSession'] as Map<String, dynamic>)
        : null,
    startTransaction: json['StartTransaction'] != null
        ? StartTransactionResult.fromJson(
            json['StartTransaction'] as Map<String, dynamic>)
        : null,
  );
}