ListProposalsOutput.fromJson constructor

ListProposalsOutput.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory ListProposalsOutput.fromJson(Map<String, dynamic> json) {
  return ListProposalsOutput(
    nextToken: json['NextToken'] as String?,
    proposals: (json['Proposals'] as List?)
        ?.whereNotNull()
        .map((e) => ProposalSummary.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}