import 'package:aku_community/constants/api.dart'; import 'package:aku_community/model/user/house_model.dart'; import 'package:aku_community/utils/network/base_model.dart'; import 'package:aku_community/utils/network/net_util.dart'; class HouseFunc { static Future> get houses async { BaseModel model = await NetUtil().get(API.user.houseList); if (!model.status!) return []; return (model.data as List).map((e) => HouseModel.fromJson(e)).toList(); } }