Skip to content

Commit

Permalink
feat(cli): remove unsupported flags for DioAltProperties
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitrySboychakov committed Aug 8, 2024
1 parent 2fdd022 commit 72a509b
Showing 1 changed file with 2 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -521,14 +521,6 @@ class DioProperties extends AdditionalProperties {
}

class DioAltProperties extends AdditionalProperties {
/// Changes the minimum version of Dart to 2.12 and generate null safe code
final bool? nullSafe;

/// nullSafe-array-default
/// Makes even arrays that are not listed as being required in your OpenAPI "required"
/// but making them always generate a default value of []
final bool? nullSafeArrayDefault;

/// This will turn off AnyOf support. This would be a bit weird, but you can do it if you want.
final bool? listAnyOf;

Expand All @@ -541,8 +533,7 @@ class DioAltProperties extends AdditionalProperties {
final String? pubspecDevDependencies;

const DioAltProperties(
{this.nullSafe,
this.nullSafeArrayDefault,
{
this.pubspecDependencies,
this.pubspecDevDependencies,
this.listAnyOf,
Expand Down Expand Up @@ -580,18 +571,13 @@ class DioAltProperties extends AdditionalProperties {
wrapper: wrapper);

DioAltProperties.fromMap(Map<String, dynamic> map)
: nullSafe = map['nullSafe'],
nullSafeArrayDefault = map['nullSafeArrayDefault'],
listAnyOf = map['listAnyOf'],
: listAnyOf = map['listAnyOf'],
pubspecDependencies = map['pubspecDependencies'],
pubspecDevDependencies = map['pubspecDevDependencies'],
super.fromMap(map);

Map<String, dynamic> toMap() => Map.from(super.toMap())
..addAll({
if (nullSafe != null) 'nullSafe': nullSafe,
if (nullSafeArrayDefault != null)
'nullSafeArrayDefault': nullSafeArrayDefault,
if (listAnyOf != null) 'listAnyOf': listAnyOf,
if (pubspecDependencies != null)
'pubspecDependencies': pubspecDependencies,
Expand Down

0 comments on commit 72a509b

Please sign in to comment.