import 'package:json_annotation/json_annotation.dart'; part 'community_model.g.dart'; @JsonSerializable() class CommunityModel { final int id; final String name; final String address; final String addressDetails; factory CommunityModel.fromJson(Map json) => _$CommunityModelFromJson(json); const CommunityModel({ required this.id, required this.name, required this.address, required this.addressDetails, }); }