ListDeviceInstancesResult.fromJson constructor

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

Implementation

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