FlutterDevice.fromJson constructor

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

Implementation

factory FlutterDevice.fromJson(Map<String, dynamic> json) => FlutterDevice(
      id: json['id']?.toString() ?? '',
      name: json['name']?.toString() ?? json['id']?.toString() ?? 'Unknown',
      targetPlatform: json['targetPlatform']?.toString() ?? '',
      emulator: json['emulator'] == true,
    );