Map<String, dynamic> toJson() => { 'view_cached': viewCached, 'method': method, 'ad_type': adType, 'error': error, 'view_id': viewId, };