Report constructor

Report({
  1. String? id,
  2. required String type,
  3. required GeoPoint location,
  4. String? geohash,
  5. required String createdBy,
  6. required Timestamp createdAt,
  7. required Timestamp expiresAt,
  8. int direction = 0,
  9. int lane = 0,
  10. String suggestedAlternative = 'none',
  11. Map<String, dynamic>? details,
})

//////////// ////////////

Implementation

// II.B - Constructor
///////////////
Report({
  this.id,
  required this.type,
  required this.location,
  this.geohash,
  required this.createdBy,
  required this.createdAt,
  required this.expiresAt,
  this.direction = 0,
  this.lane = 0,
  this.suggestedAlternative = 'none',
  Map<String, dynamic>? details,
}) : details = details ?? {};