AnyValue constructor

AnyValue({
  1. String? stringValue,
  2. bool? boolValue,
  3. Int64? intValue,
  4. double? doubleValue,
  5. ArrayValue? arrayValue,
  6. KeyValueList? kvlistValue,
  7. List<int>? bytesValue,
})

Implementation

factory AnyValue({
  $core.String? stringValue,
  $core.bool? boolValue,
  $fixnum.Int64? intValue,
  $core.double? doubleValue,
  ArrayValue? arrayValue,
  KeyValueList? kvlistValue,
  $core.List<$core.int>? bytesValue,
}) {
  final result = create();
  if (stringValue != null) result.stringValue = stringValue;
  if (boolValue != null) result.boolValue = boolValue;
  if (intValue != null) result.intValue = intValue;
  if (doubleValue != null) result.doubleValue = doubleValue;
  if (arrayValue != null) result.arrayValue = arrayValue;
  if (kvlistValue != null) result.kvlistValue = kvlistValue;
  if (bytesValue != null) result.bytesValue = bytesValue;
  return result;
}