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