CommitTransactionResult.fromJson constructor

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

Implementation

factory CommitTransactionResult.fromJson(Map<String, dynamic> json) {
  return CommitTransactionResult(
    commitDigest: _s.decodeNullableUint8List(json['CommitDigest'] as String?),
    consumedIOs: json['ConsumedIOs'] != null
        ? IOUsage.fromJson(json['ConsumedIOs'] as Map<String, dynamic>)
        : null,
    timingInformation: json['TimingInformation'] != null
        ? TimingInformation.fromJson(
            json['TimingInformation'] as Map<String, dynamic>)
        : null,
    transactionId: json['TransactionId'] as String?,
  );
}