ListCoreDevicesResponse.fromJson constructor

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

Implementation

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