class BranchModel {
  String id;
  String code;
  String name;
  double distance;

  BranchModel({
    required this.id,
    required this.code,
    required this.name,
    required this.distance,
  });

  factory BranchModel.json(Map<String, dynamic> json) {
    return BranchModel(
      id: json['id'],
      code: json['code'],
      name: json['name'],
      distance: json['distance'],
    );
  }
}
