CommitRequest.fromJson constructor

CommitRequest.fromJson(
  1. Map _json
)

Implementation

CommitRequest.fromJson(core.Map _json)
    : this(
        transaction: _json.containsKey('transaction')
            ? _json['transaction'] as core.String
            : null,
        writes: _json.containsKey('writes')
            ? (_json['writes'] as core.List)
                .map((value) => Write.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );