DescribeFleetsResult.fromJson constructor

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

Implementation

factory DescribeFleetsResult.fromJson(Map<String, dynamic> json) {
  return DescribeFleetsResult(
    fleets: (json['Fleets'] as List?)
        ?.whereNotNull()
        .map((e) => Fleet.fromJson(e as Map<String, dynamic>))
        .toList(),
    nextToken: json['NextToken'] as String?,
  );
}