GetReadingsRequest constructor

GetReadingsRequest({
  1. @Deprecated('This field is deprecated.') String? name,
  2. @Deprecated('This field is deprecated.') Iterable<ResourceName>? sensorNames,
  3. @Deprecated('This field is deprecated.') Struct? extra,
})

Implementation

factory GetReadingsRequest({
@$core.Deprecated('This field is deprecated.')
  $core.String? name,
@$core.Deprecated('This field is deprecated.')
  $core.Iterable<$14.ResourceName>? sensorNames,
@$core.Deprecated('This field is deprecated.')
  $43.Struct? extra,
}) {
  final $result = create();
  if (name != null) {
    // ignore: deprecated_member_use_from_same_package
    $result.name = name;
  }
  if (sensorNames != null) {
    // ignore: deprecated_member_use_from_same_package
    $result.sensorNames.addAll(sensorNames);
  }
  if (extra != null) {
    // ignore: deprecated_member_use_from_same_package
    $result.extra = extra;
  }
  return $result;
}