CssProductInput.fromJson constructor

CssProductInput.fromJson(
  1. Map json_
)

Implementation

CssProductInput.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?,
      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?,
      finalName: json_['finalName'] as core.String?,
      freshnessTime: json_['freshnessTime'] as core.String?,
      name: json_['name'] as core.String?,
      rawProvidedId: json_['rawProvidedId'] as core.String?,
    );