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<Proposal>((value) => Proposal.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );