BatchCreateMediaItemsRequest.fromJson constructor

BatchCreateMediaItemsRequest.fromJson(
  1. Map json_
)

Implementation

BatchCreateMediaItemsRequest.fromJson(core.Map json_)
    : this(
        albumId: json_.containsKey('albumId')
            ? json_['albumId'] as core.String
            : null,
        albumPosition: json_.containsKey('albumPosition')
            ? AlbumPosition.fromJson(
                json_['albumPosition'] as core.Map<core.String, core.dynamic>)
            : null,
        newMediaItems: json_.containsKey('newMediaItems')
            ? (json_['newMediaItems'] as core.List)
                .map((value) => NewMediaItem.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );