ListProposalsResponse.fromJson constructor

ListProposalsResponse.fromJson(
  1. Map json_
)

Implementation

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