ListDeviceFleetsResponse.fromJson constructor

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

Implementation

factory ListDeviceFleetsResponse.fromJson(Map<String, dynamic> json) {
  return ListDeviceFleetsResponse(
    deviceFleetSummaries: (json['DeviceFleetSummaries'] as List)
        .whereNotNull()
        .map((e) => DeviceFleetSummary.fromJson(e as Map<String, dynamic>))
        .toList(),
    nextToken: json['NextToken'] as String?,
  );
}