fromJson method

AdvertisementsModel fromJson(
  1. dynamic json
)

Implementation

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