Document.fromJson constructor

Document.fromJson(Map _json)

Implementation

Document.fromJson(core.Map _json) {
  if (_json.containsKey("createTime")) {
    createTime = _json["createTime"];
  }
  if (_json.containsKey("fields")) {
    fields = commons.mapMap<core.Map, Value>(
        _json["fields"].cast<core.String, core.Map>(),
        (core.Map item) => new Value.fromJson(item));
  }
  if (_json.containsKey("name")) {
    name = _json["name"];
  }
  if (_json.containsKey("updateTime")) {
    updateTime = _json["updateTime"];
  }
}