ListLabelsResponse.fromJson constructor

ListLabelsResponse.fromJson(
  1. Map json_
)

Implementation

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