ListFleetsResponse.fromJson constructor

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

Implementation

factory ListFleetsResponse.fromJson(Map<String, dynamic> json) {
  return ListFleetsResponse(
    fleetSummaryList: (json['FleetSummaryList'] as List?)
        ?.whereNotNull()
        .map((e) => FleetSummary.fromJson(e as Map<String, dynamic>))
        .toList(),
    nextToken: json['NextToken'] as String?,
  );
}