ProductInput.fromJson constructor

ProductInput.fromJson(
  1. Map json_
)

Implementation

ProductInput.fromJson(core.Map json_)
  : this(
      contentLanguage: json_['contentLanguage'] as core.String?,
      customAttributes:
          (json_['customAttributes'] as core.List?)
              ?.map(
                (value) => CustomAttribute.fromJson(
                  value as core.Map<core.String, core.dynamic>,
                ),
              )
              .toList(),
      feedLabel: json_['feedLabel'] as core.String?,
      legacyLocal: json_['legacyLocal'] as core.bool?,
      name: json_['name'] as core.String?,
      offerId: json_['offerId'] as core.String?,
      product: json_['product'] as core.String?,
      productAttributes:
          json_.containsKey('productAttributes')
              ? ProductAttributes.fromJson(
                json_['productAttributes']
                    as core.Map<core.String, core.dynamic>,
              )
              : null,
      versionNumber: json_['versionNumber'] as core.String?,
    );