toMap method

Map<String, Object?> toMap()

Implementation

Map<String, Object?> toMap() {
  final conf = <String, Object?>{
    'name': name,
    'adId': adId,
    'creativeId': creativeId,
    'podPosition': podPosition,
    'duration': duration,
    'skippable': skippable,
  };
  conf.removeWhere((key, value) => value == null);
  return conf;
}