DeviceAuthorizationRequest constructor

DeviceAuthorizationRequest({
  1. String? id,
  2. String? clientId,
  3. Iterable<String>? scope,
  4. String? appName,
  5. String? projectName,
})

Implementation

factory DeviceAuthorizationRequest({
  $core.String? id,
  $core.String? clientId,
  $core.Iterable<$core.String>? scope,
  $core.String? appName,
  $core.String? projectName,
}) {
  final result = create();
  if (id != null) result.id = id;
  if (clientId != null) result.clientId = clientId;
  if (scope != null) result.scope.addAll(scope);
  if (appName != null) result.appName = appName;
  if (projectName != null) result.projectName = projectName;
  return result;
}