Map<String, dynamic> toJson() => { "PrinterID": printerId, "Data": List<dynamic>.from(data.map((x) => x.toJson())), };