Ticket constructor

Ticket({
  1. String? id,
  2. Assignment? assignment,
  3. SearchFields? searchFields,
  4. Map<String, Any>? extensions,
  5. Map<String, Any>? persistentField,
  6. Timestamp? createTime,
})

Implementation

factory Ticket({
  $core.String? id,
  Assignment? assignment,
  SearchFields? searchFields,
  $core.Map<$core.String, $8.Any>? extensions,
  $core.Map<$core.String, $8.Any>? persistentField,
  $7.Timestamp? createTime,
}) {
  final _result = create();
  if (id != null) {
    _result.id = id;
  }
  if (assignment != null) {
    _result.assignment = assignment;
  }
  if (searchFields != null) {
    _result.searchFields = searchFields;
  }
  if (extensions != null) {
    _result.extensions.addAll(extensions);
  }
  if (persistentField != null) {
    _result.persistentField.addAll(persistentField);
  }
  if (createTime != null) {
    _result.createTime = createTime;
  }
  return _result;
}