toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var default$ = this.default$;
  var description = this.description;
  var lastModifiedDate = this.lastModifiedDate;
  var lastModifiedUser = this.lastModifiedUser;
  var lastModifiedUserAccountId = this.lastModifiedUserAccountId;
  var name = this.name;
  var scope = this.scope;
  var steps = this.steps;

  final json = <String, Object?>{};
  json[r'default'] = default$;
  if (description != null) {
    json[r'description'] = description;
  }
  if (lastModifiedDate != null) {
    json[r'lastModifiedDate'] = lastModifiedDate;
  }
  if (lastModifiedUser != null) {
    json[r'lastModifiedUser'] = lastModifiedUser;
  }
  if (lastModifiedUserAccountId != null) {
    json[r'lastModifiedUserAccountId'] = lastModifiedUserAccountId;
  }
  if (name != null) {
    json[r'name'] = name;
  }
  if (scope != null) {
    json[r'scope'] = scope.toJson();
  }
  if (steps != null) {
    json[r'steps'] = steps;
  }
  return json;
}