CommitRequest.fromJson constructor

CommitRequest.fromJson(
  1. Map _json
)

Implementation

CommitRequest.fromJson(core.Map _json) {
  if (_json.containsKey("transaction")) {
    transaction = _json["transaction"];
  }
  if (_json.containsKey("writes")) {
    writes = (_json["writes"] as core.List)
        .map<Write>((value) => new Write.fromJson(value))
        .toList();
  }
}