UrlTargeting.fromJson constructor

UrlTargeting.fromJson(
  1. Map _json
)

Implementation

UrlTargeting.fromJson(core.Map _json)
    : this(
        excludedUrls: _json.containsKey('excludedUrls')
            ? (_json['excludedUrls'] as core.List)
                .map<core.String>((value) => value as core.String)
                .toList()
            : null,
        targetedUrls: _json.containsKey('targetedUrls')
            ? (_json['targetedUrls'] as core.List)
                .map<core.String>((value) => value as core.String)
                .toList()
            : null,
      );