CommitResponse.fromJson constructor

CommitResponse.fromJson(
  1. Map _json
)

Implementation

CommitResponse.fromJson(core.Map _json) {
  if (_json.containsKey("commitTime")) {
    commitTime = _json["commitTime"];
  }
  if (_json.containsKey("writeResults")) {
    writeResults = (_json["writeResults"] as core.List)
        .map<WriteResult>((value) => new WriteResult.fromJson(value))
        .toList();
  }
}