toJson method Null safety

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (audible != null) 'audible': audible!,
      if (timeMillis != null) 'timeMillis': timeMillis!,
      if (timePercent != null) 'timePercent': timePercent!,
      if (viewabilityPercent != null)
        'viewabilityPercent': viewabilityPercent!,
    };