Function_ constructor
Function_({
- String? name,
- String? description,
- BuildConfig? buildConfig,
- ServiceConfig? serviceConfig,
- EventTrigger? eventTrigger,
- Function__State? state,
- Timestamp? updateTime,
- Map<
String, String> ? labels, - Iterable<
StateMessage> ? stateMessages, - Environment? environment,
Implementation
factory Function_({
$core.String? name,
$core.String? description,
BuildConfig? buildConfig,
ServiceConfig? serviceConfig,
EventTrigger? eventTrigger,
Function__State? state,
$2.Timestamp? updateTime,
$core.Map<$core.String, $core.String>? labels,
$core.Iterable<StateMessage>? stateMessages,
Environment? environment,
}) {
final $result = create();
if (name != null) {
$result.name = name;
}
if (description != null) {
$result.description = description;
}
if (buildConfig != null) {
$result.buildConfig = buildConfig;
}
if (serviceConfig != null) {
$result.serviceConfig = serviceConfig;
}
if (eventTrigger != null) {
$result.eventTrigger = eventTrigger;
}
if (state != null) {
$result.state = state;
}
if (updateTime != null) {
$result.updateTime = updateTime;
}
if (labels != null) {
$result.labels.addAll(labels);
}
if (stateMessages != null) {
$result.stateMessages.addAll(stateMessages);
}
if (environment != null) {
$result.environment = environment;
}
return $result;
}