Product.fromJson constructor

Product.fromJson(
  1. Map json_
)

Implementation

Product.fromJson(core.Map json_)
  : this(
      attributes: json_.containsKey('attributes')
          ? Attributes.fromJson(
              json_['attributes'] as core.Map<core.String, core.dynamic>,
            )
          : null,
      contentLanguage: json_['contentLanguage'] as core.String?,
      destinationStatuses: (json_['destinationStatuses'] as core.List?)
          ?.map(
            (value) => DestinationStatus.fromJson(
              value as core.Map<core.String, core.dynamic>,
            ),
          )
          .toList(),
      feedLabel: json_['feedLabel'] as core.String?,
      issues: (json_['issues'] as core.List?)
          ?.map(
            (value) =>
                Issue.fromJson(value as core.Map<core.String, core.dynamic>),
          )
          .toList(),
      name: json_['name'] as core.String?,
      parent: json_['parent'] as core.String?,
      productId: json_['productId'] as core.String?,
      targetCountry: json_['targetCountry'] as core.String?,
    );