Heartbeat constructor

const Heartbeat({
  1. @JsonKey(name: 'created_at') required String createdAt,
  2. @JsonKey(name: 'is_write') bool? isWrite,
  3. @JsonKey(name: 'machine_name_id') required String machineNameId,
  4. @JsonKey(name: 'user_agent_id') required String userAgentId,
  5. @JsonKey(name: 'user_id') required String userId,
  6. required String category,
  7. required List<String> dependencies,
  8. required String entity,
  9. required String id,
  10. required int lines,
  11. required double time,
  12. required String type,
  13. String? branch,
  14. int? cursorpos,
  15. String? language,
  16. int? lineno,
  17. String? project,
})

Implementation

const factory Heartbeat({
  @JsonKey(name: 'created_at') required String createdAt,
  @JsonKey(name: 'is_write') bool? isWrite,
  @JsonKey(name: 'machine_name_id') required String machineNameId,
  @JsonKey(name: 'user_agent_id') required String userAgentId,
  @JsonKey(name: 'user_id') required String userId,
  required String category,
  required List<String> dependencies,
  required String entity,
  required String id,
  required int lines,
  required double time,
  required String type,
  String? branch,
  int? cursorpos,
  String? language,
  int? lineno,
  String? project,
}) = _Heartbeat;