BulkEditAssignedInventorySourcesRequest.fromJson constructor

BulkEditAssignedInventorySourcesRequest.fromJson(
  1. Map json_
)

Implementation

BulkEditAssignedInventorySourcesRequest.fromJson(core.Map json_)
    : this(
        advertiserId: json_.containsKey('advertiserId')
            ? json_['advertiserId'] as core.String
            : null,
        createdAssignedInventorySources:
            json_.containsKey('createdAssignedInventorySources')
                ? (json_['createdAssignedInventorySources'] as core.List)
                    .map((value) => AssignedInventorySource.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                    .toList()
                : null,
        deletedAssignedInventorySources:
            json_.containsKey('deletedAssignedInventorySources')
                ? (json_['deletedAssignedInventorySources'] as core.List)
                    .map((value) => value as core.String)
                    .toList()
                : null,
        partnerId: json_.containsKey('partnerId')
            ? json_['partnerId'] as core.String
            : null,
      );