copyWith method

JsonSchemaOptions copyWith({
  1. bool? startObject,
  2. bool? endObject,
  3. bool? nullable,
  4. bool? useRefsForNestedTypes,
  5. Map<SchemaType<Object?>, String>? externalTypes,
})

Implementation

JsonSchemaOptions copyWith({
  bool? startObject,
  bool? endObject,
  bool? nullable,
  bool? useRefsForNestedTypes,
  Map<SchemaType<Object?>, String>? externalTypes,
}) {
  return JsonSchemaOptions(
    startObject: startObject ?? this.startObject,
    endObject: endObject ?? this.endObject,
    nullable: nullable ?? this.nullable,
    useRefsForNestedTypes:
        useRefsForNestedTypes ?? this.useRefsForNestedTypes,
    externalTypes: externalTypes ?? this.externalTypes,
  );
}