CommitRequest.fromJson constructor

CommitRequest.fromJson(
  1. Map json_
)

Implementation

CommitRequest.fromJson(core.Map json_)
    : this(
        maxCommitDelay: json_.containsKey('maxCommitDelay')
            ? json_['maxCommitDelay'] as core.String
            : null,
        mutations: json_.containsKey('mutations')
            ? (json_['mutations'] as core.List)
                .map((value) => Mutation.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        requestOptions: json_.containsKey('requestOptions')
            ? RequestOptions.fromJson(json_['requestOptions']
                as core.Map<core.String, core.dynamic>)
            : null,
        returnCommitStats: json_.containsKey('returnCommitStats')
            ? json_['returnCommitStats'] as core.bool
            : null,
        singleUseTransaction: json_.containsKey('singleUseTransaction')
            ? TransactionOptions.fromJson(json_['singleUseTransaction']
                as core.Map<core.String, core.dynamic>)
            : null,
        transactionId: json_.containsKey('transactionId')
            ? json_['transactionId'] as core.String
            : null,
      );