AgentInfo constructor

AgentInfo({
  1. String? host,
  2. String? os,
  3. Iterable<String>? ips,
  4. String? version,
  5. String? gitRevision,
  6. String? platform,
  7. Iterable<String>? platformTags,
})

Implementation

factory AgentInfo({
  $core.String? host,
  $core.String? os,
  $core.Iterable<$core.String>? ips,
  $core.String? version,
  $core.String? gitRevision,
  $core.String? platform,
  $core.Iterable<$core.String>? platformTags,
}) {
  final $result = create();
  if (host != null) {
    $result.host = host;
  }
  if (os != null) {
    $result.os = os;
  }
  if (ips != null) {
    $result.ips.addAll(ips);
  }
  if (version != null) {
    $result.version = version;
  }
  if (gitRevision != null) {
    $result.gitRevision = gitRevision;
  }
  if (platform != null) {
    $result.platform = platform;
  }
  if (platformTags != null) {
    $result.platformTags.addAll(platformTags);
  }
  return $result;
}