ListDevicesResponse.fromJson constructor

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

Implementation

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