Implementation
Map<String, dynamic> get metadataJson => {
if (feature != null) 'feature': feature,
if (profile != null) 'profile': profile,
if (scenarioId != null) 'scenarioId': scenarioId,
if (scenarioDescription != null)
'scenarioDescription': scenarioDescription,
if (tags.isNotEmpty) 'tags': tags,
if (description != null) 'description': description,
if (owner != null) 'owner': owner,
if (priority != null) 'priority': priority,
if (retry > 0) 'retry': retry,
if (deviceTarget != null) 'device': deviceTarget!.toJson(),
};