Constructor to create an instance of Label.
Label({required this.confidence, required this.index, required this.text});