Milestone constructor

Milestone({
  1. MilestoneType? type,
  2. Timestamp? reachedDate,
})

Implementation

factory Milestone({
  MilestoneType? type,
  $0.Timestamp? reachedDate,
}) {
  final $result = create();
  if (type != null) {
    $result.type = type;
  }
  if (reachedDate != null) {
    $result.reachedDate = reachedDate;
  }
  return $result;
}