copyWith method

ElicitationSchema copyWith({
  1. Object? type = _acpCopyWithAbsent,
  2. Object? title = _acpCopyWithAbsent,
  3. Object? properties = _acpCopyWithAbsent,
  4. Object? requiredValue = _acpCopyWithAbsent,
  5. Object? description = _acpCopyWithAbsent,
  6. Object? meta = _acpCopyWithAbsent,
})

Implementation

ElicitationSchema copyWith({
  Object? type = _acpCopyWithAbsent,
  Object? title = _acpCopyWithAbsent,
  Object? properties = _acpCopyWithAbsent,
  Object? requiredValue = _acpCopyWithAbsent,
  Object? description = _acpCopyWithAbsent,
  Object? meta = _acpCopyWithAbsent,
}) => ElicitationSchema(
  type: identical(type, _acpCopyWithAbsent)
      ? this.type
      : type as ElicitationSchemaType?,
  title: identical(title, _acpCopyWithAbsent) ? this.title : title as String?,
  properties: identical(properties, _acpCopyWithAbsent)
      ? this.properties
      : properties as Map<String, ElicitationPropertySchema>?,
  requiredValue: identical(requiredValue, _acpCopyWithAbsent)
      ? this.requiredValue
      : requiredValue as List<String>?,
  description: identical(description, _acpCopyWithAbsent)
      ? this.description
      : description as String?,
  meta: identical(meta, _acpCopyWithAbsent) ? this.meta : meta as AcpJsonMap?,
);