toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var id = this.id;
  var key = this.key;
  var self = this.self;
  var transition = this.transition;
  var watchers = this.watchers;

  final json = <String, Object?>{};
  if (id != null) {
    json[r'id'] = id;
  }
  if (key != null) {
    json[r'key'] = key;
  }
  if (self != null) {
    json[r'self'] = self;
  }
  if (transition != null) {
    json[r'transition'] = transition.toJson();
  }
  if (watchers != null) {
    json[r'watchers'] = watchers.toJson();
  }
  return json;
}