小赖 4 years ago
parent 7c47f0a628
commit 6064bc0013

@ -9,7 +9,7 @@ class AkuShopClassModel {
cid = json['cid'];
mainName = json['main_name'];
if (json['data'] != null) {
data = new List<Data>();
data = [];
json['data'].forEach((v) {
data.add(new Data.fromJson(v));
});
@ -36,7 +36,7 @@ class Data {
Data.fromJson(Map<String, dynamic> json) {
nextName = json['next_name'];
if (json['info'] != null) {
info = new List<Info>();
info = [];
json['info'].forEach((v) {
info.add(new Info.fromJson(v));
});

@ -40,14 +40,14 @@ class ActivityDetailModel {
registrationEndTime = json['registrationEndTime'];
countRegistration = json['countRegistration'];
if (json['imgUrls'] != null) {
imgUrls = new List<ImgModel>();
imgUrls = [];
json['imgUrls'].forEach((v) {
imgUrls.add(new ImgModel.fromJson(v));
});
} else
imgUrls = [];
if (json['headImgURls'] != null) {
headImgURls = new List<ImgModel>();
headImgURls = [];
json['headImgURls'].forEach((v) {
headImgURls.add(new ImgModel.fromJson(v));
});

@ -33,7 +33,7 @@ class ActivityItemModel {
registrationStartTime = json['registrationStartTime'];
registrationEndTime = json['registrationEndTime'];
if (json['imgUrls'] != null) {
imgUrls = new List<ImgModel>();
imgUrls = [];
json['imgUrls'].forEach((v) {
imgUrls.add(new ImgModel.fromJson(v));
});
@ -41,7 +41,7 @@ class ActivityItemModel {
imgUrls = [];
}
if (json['headImgURls'] != null) {
headImgURls = new List<ImgModel>();
headImgURls =[];
json['headImgURls'].forEach((v) {
headImgURls.add(new ImgModel.fromJson(v));
});

@ -11,7 +11,7 @@ class ActivityPeopleModel {
name = json['name'];
tel = json['tel'];
if (json['imgUrl'] != null) {
imgUrl = new List<ImgUrl>();
imgUrl = [];
json['imgUrl'].forEach((v) {
imgUrl.add(new ImgUrl.fromJson(v));
});

@ -26,7 +26,7 @@ class BoardDetailModel {
fileDocName = json['fileDocName'];
releaseTime = json['releaseTime'];
if (json['imgUrls'] != null) {
imgUrls = new List<ImgModel>();
imgUrls = [];
json['imgUrls'].forEach((v) {
imgUrls.add(new ImgModel.fromJson(v));
});

@ -17,7 +17,7 @@ class BoardItemModel {
title = json['title'];
releaseTime = json['releaseTime'];
if (json['imgUrls'] != null) {
imgUrls = new List<ImgModel>();
imgUrls =[];
json['imgUrls'].forEach((v) {
imgUrls.add(new ImgModel.fromJson(v));
});

@ -29,7 +29,7 @@ class CommunityTopicModel {
summary = json['summary'];
content = json['content'];
if (json['imgUrl'] != null) {
imgUrl = new List<ImgModel>();
imgUrl = [];
json['imgUrl'].forEach((v) {
imgUrl.add(new ImgModel.fromJson(v));
});

@ -40,28 +40,28 @@ class EventItemModel {
gambitTitle = json['gambitTitle'];
createDate = json['createDate'];
if (json['likeNames'] != null) {
likeNames = new List<LikeNames>();
likeNames = [];
json['likeNames'].forEach((v) {
likeNames.add(new LikeNames.fromJson(v));
});
} else
likeNames = [];
if (json['imgUrls'] != null) {
imgUrls = new List<ImgModel>();
imgUrls = [];
json['imgUrls'].forEach((v) {
imgUrls.add(new ImgModel.fromJson(v));
});
} else
imgUrls = [];
if (json['headSculptureImgUrl'] != null) {
headSculptureImgUrl = new List<ImgModel>();
headSculptureImgUrl = [];
json['headSculptureImgUrl'].forEach((v) {
headSculptureImgUrl.add(new ImgModel.fromJson(v));
});
} else
headSculptureImgUrl = [];
if (json['gambitThemeCommentVoList'] != null) {
gambitThemeCommentVoList = new List<GambitThemeCommentVoList>();
gambitThemeCommentVoList = [];
json['gambitThemeCommentVoList'].forEach((v) {
gambitThemeCommentVoList.add(new GambitThemeCommentVoList.fromJson(v));
});

@ -22,7 +22,7 @@ class MyEventItemModel {
id = json['id'];
content = json['content'];
if (json['imgUrl'] != null) {
imgUrl = new List<ImgModel>();
imgUrl = [];
json['imgUrl'].forEach((v) {
imgUrl.add(new ImgModel.fromJson(v));
});

@ -33,7 +33,7 @@ class AppAdviceDetailVo {
? new AppAdviceVo.fromJson(json['appAdviceVo'])
: null;
if (json['appAdviceContentVos'] != null) {
appAdviceContentVos = new List<AppAdviceContentVos>();
appAdviceContentVos = [];
json['appAdviceContentVos'].forEach((v) {
appAdviceContentVos.add(new AppAdviceContentVos.fromJson(v));
});
@ -78,7 +78,7 @@ class AppAdviceVo {
content = json['content'];
createDate = json['createDate'];
if (json['imgUrls'] != null) {
imgUrls = new List<ImgModel>();
imgUrls = [];
json['imgUrls'].forEach((v) {
imgUrls.add(new ImgModel.fromJson(v));
});

@ -13,7 +13,7 @@ class ArticleBorrowModel {
name = json['name'];
quantity = json['quantity'];
if (json['imgUrls'] != null) {
imgUrls = new List<ImgModel>();
imgUrls = [];
json['imgUrls'].forEach((v) {
imgUrls.add(new ImgModel.fromJson(v));
});

@ -28,14 +28,14 @@ class EventVotingModel {
endDate = json['endDate'];
status = json['status'];
if (json['imgUrls'] != null) {
imgUrls = new List<ImgModel>();
imgUrls = [];
json['imgUrls'].forEach((v) {
imgUrls.add(new ImgModel.fromJson(v));
});
} else
imgUrls = [];
if (json['headImgURls'] != null) {
headImgURls = new List<ImgModel>();
headImgURls = [];
json['headImgURls'].forEach((v) {
headImgURls.add(new ImgModel.fromJson(v));
});

@ -17,7 +17,7 @@ class FixedDetailModel {
? new AppReportRepairVo.fromJson(json['appReportRepairVo'])
: null;
if (json['appProcessRecordVo'] != null) {
appProcessRecordVo = new List<AppProcessRecordVo>();
appProcessRecordVo = [];
json['appProcessRecordVo'].forEach((v) {
appProcessRecordVo.add(new AppProcessRecordVo.fromJson(v));
});
@ -61,7 +61,7 @@ class AppReportRepairVo {
status = json['status'];
reportDetail = json['reportDetail'];
if (json['imgUrls'] != null) {
imgUrls = new List<ImgModel>();
imgUrls = [];
json['imgUrls'].forEach((v) {
imgUrls.add(new ImgModel.fromJson(v));
});

@ -27,7 +27,7 @@ class GoodsOutModel {
status = json['status'];
movingCompanyTel = json['movingCompanyTel'];
if (json['imgUrl'] != null) {
imgUrl = new List<ImgUrl>();
imgUrl = [];
json['imgUrl'].forEach((v) {
imgUrl.add(new ImgUrl.fromJson(v));
});

@ -9,7 +9,7 @@ class LifePayModel {
years = json['years'];
paymentNum = json['paymentNum'];
if (json['dailyPaymentTypeVos'] != null) {
dailyPaymentTypeVos = new List<DailyPaymentTypeVos>();
dailyPaymentTypeVos = [];
json['dailyPaymentTypeVos'].forEach((v) {
dailyPaymentTypeVos.add(new DailyPaymentTypeVos.fromJson(v));
});
@ -39,7 +39,7 @@ class DailyPaymentTypeVos {
id = json['id'];
name = json['name'];
if (json['detailedVoList'] != null) {
detailedVoList = new List<DetailedVoList>();
detailedVoList = [];
json['detailedVoList'].forEach((v) {
detailedVoList.add(new DetailedVoList.fromJson(v));
});
@ -69,7 +69,7 @@ class DetailedVoList {
groupId = json['groupId'];
paymentPrice = json['paymentPrice'];
if (json['detailsVoList'] != null) {
detailsVoList = new List<DetailsVoList>();
detailsVoList = [];
json['detailsVoList'].forEach((v) {
detailsVoList.add(new DetailsVoList.fromJson(v));
});

@ -5,7 +5,7 @@ class MovingCompanyModel {
MovingCompanyModel.fromJson(Map<String, dynamic> json) {
if (json['appMovingCompanyVoList'] != null) {
appMovingCompanyVoList = new List<AppMovingCompanyVoList>();
appMovingCompanyVoList = [];
json['appMovingCompanyVoList'].forEach((v) {
appMovingCompanyVoList.add(new AppMovingCompanyVoList.fromJson(v));
});

@ -31,14 +31,14 @@ class QuestionnaireModel {
status = json['status'];
answerNum = json['answerNum'];
if (json['imgUrls'] != null) {
imgUrls = new List<ImgModel>();
imgUrls = [];
json['imgUrls'].forEach((v) {
imgUrls.add(new ImgModel.fromJson(v));
});
} else
imgUrls = [];
if (json['headImgURls'] != null) {
headImgURls = new List<ImgModel>();
headImgURls = [];
json['headImgURls'].forEach((v) {
headImgURls.add(new ImgModel.fromJson(v));
});

@ -23,13 +23,13 @@ class QuestionnaireDetialModel {
beginDate = json['beginDate'];
endDate = json['endDate'];
if (json['questionnaireTopicVoList'] != null) {
questionnaireTopicVoList = new List<QuestionnaireTopicVoList>();
questionnaireTopicVoList = [];
json['questionnaireTopicVoList'].forEach((v) {
questionnaireTopicVoList.add(new QuestionnaireTopicVoList.fromJson(v));
});
}
if (json['voResourcesImgList'] != null) {
voResourcesImgList = new List<VoResourcesImgList>();
voResourcesImgList = [];
json['voResourcesImgList'].forEach((v) {
voResourcesImgList.add(new VoResourcesImgList.fromJson(v));
});
@ -70,7 +70,7 @@ class QuestionnaireTopicVoList {
type = json['type'];
topic = json['topic'];
if (json['questionnaireChoiceVoList'] != null) {
questionnaireChoiceVoList = new List<QuestionnaireChoiceVoList>();
questionnaireChoiceVoList = [];
json['questionnaireChoiceVoList'].forEach((v) {
questionnaireChoiceVoList
.add(new QuestionnaireChoiceVoList.fromJson(v));

@ -7,7 +7,7 @@ class QuestionnaireSubmitModel {
QuestionnaireSubmitModel.fromJson(Map<String, dynamic> json) {
id = json['id'];
if (json['appQuestionnaireAnswerSubmits'] != null) {
appQuestionnaireAnswerSubmits = new List<AppQuestionnaireAnswerSubmits>();
appQuestionnaireAnswerSubmits = [];
json['appQuestionnaireAnswerSubmits'].forEach((v) {
appQuestionnaireAnswerSubmits
.add(new AppQuestionnaireAnswerSubmits.fromJson(v));

@ -28,7 +28,7 @@ class SuggestionOrComplainModel {
score = json['score'];
createDate = DateUtil.getDateTime(json['createDate']);
if (json['imgUrls'] != null) {
imgUrls = new List<ImgModel>();
imgUrls = [];
json['imgUrls'].forEach((v) {
imgUrls.add(new ImgModel.fromJson(v));
});

@ -31,14 +31,14 @@ class VotingDetailModel {
status = json['status'];
totals = json['totals'];
if (json['imgUrls'] != null) {
imgUrls = new List<ImgModel>();
imgUrls = [];
json['imgUrls'].forEach((v) {
imgUrls.add(new ImgModel.fromJson(v));
});
} else
imgUrls = [];
if (json['appVoteCandidateVos'] != null) {
appVoteCandidateVos = new List<AppVoteCandidateVos>();
appVoteCandidateVos = [];
json['appVoteCandidateVos'].forEach((v) {
appVoteCandidateVos.add(new AppVoteCandidateVos.fromJson(v));
});
@ -104,7 +104,7 @@ class AppVoteCandidateVos {
name = json['name'];
total = json['total'];
if (json['imgUrls'] != null) {
imgUrls = new List<ImgModel>();
imgUrls = [];
json['imgUrls'].forEach((v) {
imgUrls.add(new ImgModel.fromJson(v));
});

@ -16,7 +16,7 @@ class FixedSubmitModel {
status = json['status'];
reportDetail = json['reportDetail'];
if (json['imgUrls'] != null) {
imgUrls = new List<ImgModel>();
imgUrls = [];
json['imgUrls'].forEach((v) {
imgUrls.add(new ImgModel.fromJson(v));
});

@ -11,7 +11,6 @@ import 'package:akuCommunity/constants/api.dart';
import 'package:akuCommunity/model/manager/life_pay_model.dart';
import 'package:akuCommunity/pages/life_pay/life_pay_record_page.dart';
import 'package:akuCommunity/pages/life_pay/widget/life_pay_detail_page.dart';
import 'package:akuCommunity/pages/life_pay/widget/my_house_page.dart';
import 'package:akuCommunity/pages/things_page/widget/bee_list_view.dart';
import 'package:akuCommunity/provider/app_provider.dart';
import 'package:akuCommunity/provider/user_provider.dart';

@ -13,14 +13,11 @@ import 'package:akuCommunity/base/base_style.dart';
import 'package:akuCommunity/const/resource.dart';
import 'package:akuCommunity/constants/api.dart';
import 'package:akuCommunity/extensions/widget_list_ext.dart';
import 'package:akuCommunity/pages/life_pay/widget/my_house_page.dart';
import 'package:akuCommunity/pages/manager_func.dart';
import 'package:akuCommunity/pages/things_page/widget/finish_fixed_submit_page.dart';
import 'package:akuCommunity/provider/app_provider.dart';
import 'package:akuCommunity/provider/user_provider.dart';
import 'package:akuCommunity/ui/profile/house/house_owners_page.dart';
import 'package:akuCommunity/ui/profile/house/pick_my_house_page.dart';
import 'package:akuCommunity/utils/bee_parse.dart';
import 'package:akuCommunity/utils/headers.dart';
import 'package:akuCommunity/utils/network/base_model.dart';
import 'package:akuCommunity/utils/network/net_util.dart';

@ -8,14 +8,11 @@ import 'package:get/get.dart';
import 'package:provider/provider.dart';
import 'package:velocity_x/velocity_x.dart';
import 'package:akuCommunity/base/base_style.dart';
import 'package:akuCommunity/pages/life_pay/widget/my_house_page.dart';
import 'package:akuCommunity/pages/manager_func.dart';
import 'package:akuCommunity/provider/app_provider.dart';
import 'package:akuCommunity/provider/user_provider.dart';
import 'package:akuCommunity/ui/manager/visitor/visitor_record_page.dart';
import 'package:akuCommunity/ui/profile/house/pick_my_house_page.dart';
import 'package:akuCommunity/utils/bee_parse.dart';
import 'package:akuCommunity/utils/headers.dart';
import 'package:akuCommunity/widget/bee_divider.dart';
import 'package:akuCommunity/widget/bee_scaffold.dart';

@ -1,6 +1,5 @@
import 'package:flutter/material.dart';
import 'package:bot_toast/bot_toast.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart';
import 'package:get/get.dart';
import 'package:open_file/open_file.dart';

@ -5,7 +5,6 @@ import 'package:provider/provider.dart';
import 'package:akuCommunity/provider/app_provider.dart';
import 'package:akuCommunity/ui/profile/car/car_manage_card.dart';
import 'package:akuCommunity/ui/profile/car_parking/car_parking_card.dart';
import 'package:akuCommunity/utils/headers.dart';
import 'package:akuCommunity/widget/bee_scaffold.dart';

@ -1,7 +1,5 @@
import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:akuCommunity/const/resource.dart';
import 'package:akuCommunity/constants/api.dart';
import 'package:akuCommunity/utils/headers.dart';

@ -2,7 +2,6 @@ import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';
import 'package:akuCommunity/const/resource.dart';
import 'package:akuCommunity/constants/api.dart';

Loading…
Cancel
Save