fromJson method

AdvertisementModel fromJson(
  1. dynamic json, {
  2. String? keyName,
})

Implementation

AdvertisementModel fromJson(json, {String? keyName}) {
  id = Util.getValueFromJson(json, 'id', -1);
  description = Util.getValueFromJson(json, 'description', '');
  return this;
}