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