PrimaryProductDataSource.fromJson constructor

PrimaryProductDataSource.fromJson(
  1. Map json_
)

Implementation

PrimaryProductDataSource.fromJson(core.Map json_)
  : this(
      contentLanguage: json_['contentLanguage'] as core.String?,
      countries: (json_['countries'] as core.List?)
          ?.map((value) => value as core.String)
          .toList(),
      defaultRule: json_.containsKey('defaultRule')
          ? DefaultRule.fromJson(
              json_['defaultRule'] as core.Map<core.String, core.dynamic>,
            )
          : null,
      destinations: (json_['destinations'] as core.List?)
          ?.map(
            (value) => Destination.fromJson(
              value as core.Map<core.String, core.dynamic>,
            ),
          )
          .toList(),
      feedLabel: json_['feedLabel'] as core.String?,
      legacyLocal: json_['legacyLocal'] as core.bool?,
    );