ListBrokersResponse.fromJson constructor

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

Implementation

factory ListBrokersResponse.fromJson(Map<String, dynamic> json) {
  return ListBrokersResponse(
    brokerSummaries: (json['brokerSummaries'] as List?)
        ?.whereNotNull()
        .map((e) => BrokerSummary.fromJson(e as Map<String, dynamic>))
        .toList(),
    nextToken: json['nextToken'] as String?,
  );
}