ActiveMeasurement constructor

ActiveMeasurement({
  1. String? id,
  2. String? userId,
  3. int? seconds,
  4. Timestamp? createdAt,
  5. Timestamp? expiresAt,
  6. Location? from,
  7. int? year,
  8. Platform? device,
})

Implementation

factory ActiveMeasurement({
  $core.String? id,
  $core.String? userId,
  $core.int? seconds,
  $1.Timestamp? createdAt,
  $1.Timestamp? expiresAt,
  Location? from,
  $core.int? year,
  Platform? device,
}) {
  final _result = create();
  if (id != null) {
    _result.id = id;
  }
  if (userId != null) {
    _result.userId = userId;
  }
  if (seconds != null) {
    _result.seconds = seconds;
  }
  if (createdAt != null) {
    _result.createdAt = createdAt;
  }
  if (expiresAt != null) {
    _result.expiresAt = expiresAt;
  }
  if (from != null) {
    _result.from = from;
  }
  if (year != null) {
    _result.year = year;
  }
  if (device != null) {
    _result.device = device;
  }
  return _result;
}