toJson method

  1. @override
JsonObject toJson()

Converts this instance into a json object map. E.g. JsonObject toJson() => {'name': name, 'age': age};

Implementation

@override
JsonObject toJson() => {
      'text': text,
      'rawBytes': rawBytes,
      'barcodeFormat': describeEnum(barcodeFormat).toUpperCase(),
    };