toJson method

Map<String, Object?> toJson()

Only the sections present — the merge unit on the attacher side.

Implementation

Map<String, Object?> toJson() => {
  if (baseUrl != null) 'baseUrl': baseUrl,
  if (environment != null) 'environment': environment,
  if (links != null) 'links': [for (var link in links!) link.toJson()],
  if (connections != null)
    'connections': [for (var c in connections!) c.toJson()],
  if (config != null) 'config': config,
};