Ads.fromJson constructor

Ads.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory Ads.fromJson(Map<String, dynamic> json) {
  return Ads(
    id: json['_id'],
    adId: json['id'],
    type: json['type'],
    typeName: json['type_name'],
    typeSize: json['type_size'],
    clientRedirectUrl: json['client_redirect_url'],
    adsName: json['ads_name'],
    cdnLink: json['cdnlink'],
    adsPosition: json['ads_position'],
    adsType: json['ads_type'],
    adUnitId: json['ad_unit_id'],
    adsStatus: json['ads_status'],
    adsRotation: json['ads_rotation'],
    country: json['country'],
    rotationOrder: json['rotation_order'],
    company: json['company'],
    contentType: json['content_type'],
    impressionCount: json['impressionCount'],
    lastImpressionAt: json['lastImpressionAt'],
  );
}