toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.comment != null) {
    json[r'comment'] = this.comment;
  } else {
    json[r'comment'] = null;
  }
  if (this.dataType != null) {
    json[r'dataType'] = this.dataType;
  } else {
    json[r'dataType'] = null;
  }
  if (this.id != null) {
    json[r'id'] = this.id;
  } else {
    json[r'id'] = null;
  }
  if (this.name != null) {
    json[r'name'] = this.name;
  } else {
    json[r'name'] = null;
  }
  if (this.runName != null) {
    json[r'runName'] = this.runName;
  } else {
    json[r'runName'] = null;
  }
  if (this.stringValue != null) {
    json[r'stringValue'] = this.stringValue;
  } else {
    json[r'stringValue'] = null;
  }
  if (this.timestamp != null) {
    json[r'timestamp'] = this.timestamp;
  } else {
    json[r'timestamp'] = null;
  }
  if (this.traceId != null) {
    json[r'traceId'] = this.traceId;
  } else {
    json[r'traceId'] = null;
  }
  if (this.value != null) {
    json[r'value'] = this.value;
  } else {
    json[r'value'] = null;
  }
  return json;
}