Instance constructor

Instance({
  1. String? name,
  2. Timestamp? createTime,
  3. Timestamp? updateTime,
  4. Instance_State? state,
  5. String? stateMessage,
  6. Instance_Config? config,
})

Implementation

factory Instance({
  $core.String? name,
  $2.Timestamp? createTime,
  $2.Timestamp? updateTime,
  Instance_State? state,
  $core.String? stateMessage,
  Instance_Config? config,
}) {
  final $result = create();
  if (name != null) {
    $result.name = name;
  }
  if (createTime != null) {
    $result.createTime = createTime;
  }
  if (updateTime != null) {
    $result.updateTime = updateTime;
  }
  if (state != null) {
    $result.state = state;
  }
  if (stateMessage != null) {
    $result.stateMessage = stateMessage;
  }
  if (config != null) {
    $result.config = config;
  }
  return $result;
}