Function_ constructor

Function_({
  1. String? name,
  2. String? description,
  3. BuildConfig? buildConfig,
  4. ServiceConfig? serviceConfig,
  5. EventTrigger? eventTrigger,
  6. Function__State? state,
  7. Timestamp? updateTime,
  8. Map<String, String>? labels,
  9. Iterable<StateMessage>? stateMessages,
  10. 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;
}