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) => DeviceType.fromJson(e as Map<String, dynamic>))
        .toList(),
    paginationToken: json['PaginationToken'] as String?,
  );
}