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) 'type': type.typeName,
  if (title != null) 'title': title,
  if (description != null) 'description': description,
  if (allOf != null) 'allOf': allOf,
  if (anyOf != null) 'anyOf': anyOf,
  if (oneOf != null) 'oneOf': oneOf,
  if (not != null) 'not': not,
});