BulkEditSitesRequest.fromJson constructor

BulkEditSitesRequest.fromJson(
  1. Map json_
)

Implementation

BulkEditSitesRequest.fromJson(core.Map json_)
    : this(
        advertiserId: json_.containsKey('advertiserId')
            ? json_['advertiserId'] as core.String
            : null,
        createdSites: json_.containsKey('createdSites')
            ? (json_['createdSites'] as core.List)
                .map((value) => Site.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        deletedSites: json_.containsKey('deletedSites')
            ? (json_['deletedSites'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        partnerId: json_.containsKey('partnerId')
            ? json_['partnerId'] as core.String
            : null,
      );