Categories.fromJson constructor

Categories.fromJson(
  1. Map json_
)

Implementation

Categories.fromJson(core.Map json_)
    : this(
        additionalCategories: json_.containsKey('additionalCategories')
            ? (json_['additionalCategories'] as core.List)
                .map((value) => Category.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        primaryCategory: json_.containsKey('primaryCategory')
            ? Category.fromJson(json_['primaryCategory']
                as core.Map<core.String, core.dynamic>)
            : null,
      );