PromptDevice.fromJson constructor

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

Implementation

factory PromptDevice.fromJson(Map<String, dynamic> json) {
  return PromptDevice(
    id: DeviceId.fromJson(json['id'] as String),
    name: json['name'] as String,
  );
}