Log constructor

Log({
  1. dynamic id,
  2. required String type,
  3. dynamic timestamp,
  4. required String appLaunchTimestamp,
  5. required String sid,
  6. required Device device,
  7. required Map<String, String> properties,
})

Implementation

Log({
  id,
  required this.type,
  timestamp,
  required this.appLaunchTimestamp,
  required this.sid,
  required this.device,
  required this.properties,
})  : id = id ?? const Uuid().v1(),
      timestamp = timestamp ?? DateTime.now().toIso8601String();