toJson method

Map<String, Object> toJson ()

Implementation

core.Map<core.String, core.Object> toJson() {
  final core.Map<core.String, core.Object> _json =
      new core.Map<core.String, core.Object>();
  if (createTime != null) {
    _json["createTime"] = createTime;
  }
  if (name != null) {
    _json["name"] = name;
  }
  if (restoreInfo != null) {
    _json["restoreInfo"] = (restoreInfo).toJson();
  }
  if (state != null) {
    _json["state"] = state;
  }
  return _json;
}