AdInfo class

Annotations
  • @freezed

Constructors

AdInfo({@Default(Duration.zero) @JsonKey(fromJson: _durationFromJson, toJson: _durationToJson) Duration duration, @Default(Duration.zero) @JsonKey(name: 'skip_time_offset', fromJson: _durationFromJson, toJson: _durationToJson) Duration skipTimeOffset, @Default('') String adid, @Default(Size.zero) @JsonKey(fromJson: _sizeFromJson, toJson: _sizeToJson) Size size, @Default('') @JsonKey(name: 'advertiser_name') String advertiserName, @Default('') @JsonKey(name: 'ad_system') String adSystem, @Default('') @JsonKey(name: 'content_type') String contentType, @Default('') String title, @Default('') String description, @Default(0) int bitrate, @Default(false) bool skippable, @Default(true) bool linear, @Default(false) @JsonKey(name: 'ui_disabled') bool uiDisabled, @Default(false) @JsonKey(name: 'is_bumper') bool isBumper, @Default(0) @JsonKey(name: 'total_ads') int totalAds})
const
factory
AdInfo.fromJson(Map<String, dynamic> json)
factory

Properties

adid String
no setterinherited
adSystem String
no setterinherited
advertiserName String
no setterinherited
bitrate int
no setterinherited
contentType String
no setterinherited
copyWith → $AdInfoCopyWith<AdInfo>
no setterinherited
description String
no setterinherited
duration Duration
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
isBumper bool
no setterinherited
linear bool
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size Size
no setterinherited
skippable bool
no setterinherited
skipTimeOffset Duration
no setterinherited
title String
no setterinherited
totalAds int
no setterinherited
uiDisabled bool
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited