toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var body = this.body;
  var failureTime = this.failureTime;
  var id = this.id;
  var url = this.url;

  final json = <String, Object?>{};
  if (body != null) {
    json[r'body'] = body;
  }
  json[r'failureTime'] = failureTime;
  json[r'id'] = id;
  json[r'url'] = url;
  return json;
}