toJson method

Map toJson()

Implementation

Map toJson() {
  Map _result = {};

  if (tag != null) _result.addAll({"tag": tag});
  if (scenario != null) _result.addAll({"scenario": scenario});
  if (image != null) _result.addAll({"image": image});
  if (configuration != null)
    _result.addAll({"configuration": configuration!.toJson()});

  return _result;
}