toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.durationMs != null) {
    json[r'durationMs'] = this.durationMs;
  } else {
    json[r'durationMs'] = null;
  }
  if (this.id != null) {
    json[r'id'] = this.id;
  } else {
    json[r'id'] = null;
  }
  if (this.method != null) {
    json[r'method'] = this.method;
  } else {
    json[r'method'] = null;
  }
  if (this.status != null) {
    json[r'status'] = this.status;
  } else {
    json[r'status'] = null;
  }
  if (this.statusCode != null) {
    json[r'statusCode'] = this.statusCode;
  } else {
    json[r'statusCode'] = null;
  }
  if (this.time != null) {
    json[r'time'] = this.time;
  } else {
    json[r'time'] = null;
  }
  return json;
}