toMap method

Map<String, dynamic> toMap()

Serialises this Source for transport across the platform channel.

Implementation

Map<String, dynamic> toMap() => {
      'url': url,
      'type': type,
      'drm': drm?.toMap(),
    };