You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
466 B
21 lines
466 B
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<String, dynamic> json) =>
|
|
_$CommunityModelFromJson(json);
|
|
|
|
const CommunityModel({
|
|
required this.id,
|
|
required this.name,
|
|
required this.address,
|
|
required this.addressDetails,
|
|
});
|
|
}
|