DeviceRequestPromptedEvent.fromJson constructor

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

Implementation

factory DeviceRequestPromptedEvent.fromJson(Map<String, dynamic> json) {
  return DeviceRequestPromptedEvent(
    id: RequestId.fromJson(json['id'] as String),
    devices:
        (json['devices'] as List)
            .map((e) => PromptDevice.fromJson(e as Map<String, dynamic>))
            .toList(),
  );
}