ListDealsResponse.fromJson constructor

ListDealsResponse.fromJson(
  1. Map json_
)

Implementation

ListDealsResponse.fromJson(core.Map json_)
    : this(
        deals: json_.containsKey('deals')
            ? (json_['deals'] as core.List)
                .map((value) => Deal.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        nextPageToken: json_.containsKey('nextPageToken')
            ? json_['nextPageToken'] as core.String
            : null,
      );