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 (contexts != null) {
    _json["contexts"] = contexts.map((value) => (value).toJson()).toList();
  }
  if (details != null) {
    _json["details"] = details;
  }
  if (reason != null) {
    _json["reason"] = reason;
  }
  return _json;
}