toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final data = <String, dynamic>{};
  data['id'] = id;
  if (company != null) {
    data['company'] = company!.toJson();
  }
  if (machine != null) {
    data['machine'] = machine!.toJson();
  }
  if (collector != null) {
    data['collector'] = collector!.toJson();
  }
  if (config != null) {
    data['config'] = config!.toJson();
  }
  if (api != null) {
    data['api'] = api!.toJson();
  }
  data['key'] = key;
  data['tags'] = tags;
  data['deleted'] = deleted;
  data['name'] = name;
  data['build_together'] = buildTogether;
  data['build_data_changes'] = buildDataChanges;
  return data;
}