insert method

Future<Playlist> insert(
  1. {String part = 'contentDetails,id,localizations,player,snippet,status',
  2. List<String> partList = const [],
  3. required Map<String, dynamic> body,
  4. String? onBehalfOfContentOwner,
  5. String? onBehalfOfContentOwnerChannel}
)

Creates a playlist.

Implementation

Future<Playlist> insert({
  String part = 'contentDetails,id,localizations,player,snippet,status',
  List<String> partList = const [],
  required Map<String, dynamic> body,
  String? onBehalfOfContentOwner,
  String? onBehalfOfContentOwnerChannel,
}) async {
  return await _rest.insert(
    accept,
    contentType,
    buildParts(partList, part),
    body,
  );
}