Location constructor

Location({
  1. required int id,
  2. required String name,
  3. required String country,
  4. required String countryCode,
  5. required String isItAFarm,
  6. required String farmAndFarmingSystemComplement,
  7. required String farmAndFarmingSystem,
  8. required String farmAndFarmingSystemDetails,
  9. required String whatIsYourDream,
  10. required String imageUrl,
  11. required String description,
  12. required String hideMyLocation,
  13. required String latitude,
  14. required String longitude,
  15. required String responsibleForInformation,
  16. required String url,
  17. required int accountId,
})

Implementation

Location({
  required this.id,
  required this.name,
  required this.country,
  required this.countryCode,
  required this.isItAFarm,
  required this.farmAndFarmingSystemComplement,
  required this.farmAndFarmingSystem,
  required this.farmAndFarmingSystemDetails,
  required this.whatIsYourDream,
  required this.imageUrl,
  required this.description,
  required this.hideMyLocation,
  required this.latitude,
  required this.longitude,
  required this.responsibleForInformation,
  required this.url,
  required this.accountId,
})  : base64Image = '',
      hasPermission = false,
      createdAt = '',
      updatedAt = '';