Schema.combined constructor

Schema.combined({
  1. JsonType? type,
  2. String? title,
  3. String? description,
  4. List<Schema>? allOf,
  5. List<Schema>? anyOf,
  6. List<Schema>? oneOf,
  7. List<Schema>? not,
})

Implementation

factory Schema.combined({
  JsonType? type,
  String? title,
  String? description,
  List<Schema>? allOf,
  List<Schema>? anyOf,
  List<Schema>? oneOf,
  List<Schema>? not,
}) => Schema.fromMap({
  if (type != null) Keys.type: type.typeName,
  if (title != null) Keys.title: title,
  if (description != null) Keys.description: description,
  if (allOf != null) Keys.allOf: allOf,
  if (anyOf != null) Keys.anyOf: anyOf,
  if (oneOf != null) Keys.oneOf: oneOf,
  if (not != null) Keys.not: not,
});