ProductPermissions.fromJson constructor

ProductPermissions.fromJson(
  1. Map json_
)

Implementation

ProductPermissions.fromJson(core.Map json_)
    : this(
        permission: json_.containsKey('permission')
            ? (json_['permission'] as core.List)
                .map((value) => ProductPermission.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        productId: json_.containsKey('productId')
            ? json_['productId'] as core.String
            : null,
      );