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