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