fromJson method
Implementation
AdvertisementsModel fromJson(json) {
if (json.isNotEmpty) json.forEach((ele) => list.add(AdvertisementModel().fromJson(ele)));
return this;
}
AdvertisementsModel fromJson(json) {
if (json.isNotEmpty) json.forEach((ele) => list.add(AdvertisementModel().fromJson(ele)));
return this;
}