toJson method

  1. @visibleForTesting
Map<String, dynamic> toJson()

Implementation

@visibleForTesting
Map<String, dynamic> toJson() => {
      "tag": _tag,
      "scenario": _scenario?.value,
      "image": _bytesToBase64(_image),
      "configuration": _configuration?.toJson(),
    }.clearNulls();