DatafeedTarget.fromJson constructor

DatafeedTarget.fromJson(
  1. Map json_
)

Implementation

DatafeedTarget.fromJson(core.Map json_)
    : this(
        country: json_['country'] as core.String?,
        excludedDestinations: (json_['excludedDestinations'] as core.List?)
            ?.map((value) => value as core.String)
            .toList(),
        feedLabel: json_['feedLabel'] as core.String?,
        includedDestinations: (json_['includedDestinations'] as core.List?)
            ?.map((value) => value as core.String)
            .toList(),
        language: json_['language'] as core.String?,
        targetCountries: (json_['targetCountries'] as core.List?)
            ?.map((value) => value as core.String)
            .toList(),
      );