InAppPurchaseAppStoreReviewScreenshot constructor

InAppPurchaseAppStoreReviewScreenshot(
  1. String id,
  2. Map<String, dynamic> attributes,
  3. AppStoreConnectClient client
)

Implementation

InAppPurchaseAppStoreReviewScreenshot(String id, Map<String, dynamic> attributes, AppStoreConnectClient client)
    : id = id,
      attributes = InAppPurchaseAppStoreReviewScreenshotCreateAttributes._(attributes),
      assetToken = attributes['assetToken'],
      uploadOperations = (attributes['uploadOperations'] as List)
          .map((operation) => UploadOperation(
                operation['method'],
                operation['url'],
                operation['length'] as int,
                operation['offset'] as int,
                (operation['requestHeaders'] as List)
                    .map((header) => RequestHeader(header['name'], header['value']))
                    .toList(),
              ))
          .toList(),
      super(type, id, client);