@@ -341,8 +341,8 @@ class AWSRemoteSpecHeaderDelegate extends RemoteSpecHeaderDelegate {
341
341
342
342
const AWSRemoteSpecHeaderDelegate ({
343
343
required this .bucket,
344
- this .secretAccessKey = null ,
345
- this .accessKeyId = null ,
344
+ this .secretAccessKey,
345
+ this .accessKeyId,
346
346
}) : super ();
347
347
348
348
AWSRemoteSpecHeaderDelegate .fromMap (Map <String , dynamic > map)
@@ -359,7 +359,7 @@ class AWSRemoteSpecHeaderDelegate extends RemoteSpecHeaderDelegate {
359
359
String ? path,
360
360
}) {
361
361
if (! (path != null && path.isNotEmpty)) {
362
- throw new AssertionError ('The path to the OAS spec should be provided' );
362
+ throw AssertionError ('The path to the OAS spec should be provided' );
363
363
}
364
364
365
365
// Use the provided credentials to the constructor, if any, otherwise
@@ -369,7 +369,7 @@ class AWSRemoteSpecHeaderDelegate extends RemoteSpecHeaderDelegate {
369
369
secretAccessKey ?? Platform .environment['AWS_SECRET_ACCESS_KEY' ];
370
370
if ((accessKey == null || accessKey.isEmpty) ||
371
371
(secretKey == null || secretKey.isEmpty)) {
372
- throw new AssertionError (
372
+ throw AssertionError (
373
373
'AWS_SECRET_KEY_ID & AWS_SECRET_ACCESS_KEY should be defined and not empty or they should be provided in the delegate constructor.' );
374
374
}
375
375
@@ -548,30 +548,39 @@ class AdditionalProperties {
548
548
String toString () {
549
549
final buffer = StringBuffer ();
550
550
buffer.writeln ('AdditionalProperties(' );
551
- if (allowUnicodeIdentifiers != null )
551
+ if (allowUnicodeIdentifiers != null ) {
552
552
buffer.writeln (' allowUnicodeIdentifiers: $allowUnicodeIdentifiers ,' );
553
- if (ensureUniqueParams != null )
553
+ }
554
+ if (ensureUniqueParams != null ) {
554
555
buffer.writeln (' ensureUniqueParams: $ensureUniqueParams ,' );
555
- if (prependFormOrBodyParameters != null )
556
+ }
557
+ if (prependFormOrBodyParameters != null ) {
556
558
buffer.writeln (
557
559
' prependFormOrBodyParameters: $prependFormOrBodyParameters ,' );
560
+ }
558
561
if (pubAuthor != null ) buffer.writeln (' pubAuthor: "$pubAuthor ",' );
559
- if (pubAuthorEmail != null )
562
+ if (pubAuthorEmail != null ) {
560
563
buffer.writeln (' pubAuthorEmail: "$pubAuthorEmail ",' );
561
- if (pubDescription != null )
564
+ }
565
+ if (pubDescription != null ) {
562
566
buffer.writeln (' pubDescription: "$pubDescription ",' );
567
+ }
563
568
if (pubHomepage != null ) buffer.writeln (' pubHomepage: "$pubHomepage ",' );
564
569
if (pubName != null ) buffer.writeln (' pubName: "$pubName ",' );
565
570
if (pubVersion != null ) buffer.writeln (' pubVersion: "$pubVersion ",' );
566
- if (sortModelPropertiesByRequiredFlag != null )
571
+ if (sortModelPropertiesByRequiredFlag != null ) {
567
572
buffer.writeln (
568
573
' sortModelPropertiesByRequiredFlag: $sortModelPropertiesByRequiredFlag ,' );
569
- if (sortParamsByRequiredFlag != null )
574
+ }
575
+ if (sortParamsByRequiredFlag != null ) {
570
576
buffer.writeln (' sortParamsByRequiredFlag: $sortParamsByRequiredFlag ,' );
571
- if (sourceFolder != null )
577
+ }
578
+ if (sourceFolder != null ) {
572
579
buffer.writeln (' sourceFolder: "$sourceFolder ",' );
573
- if (useEnumExtension != null )
580
+ }
581
+ if (useEnumExtension != null ) {
574
582
buffer.writeln (' useEnumExtension: $useEnumExtension ,' );
583
+ }
575
584
buffer.writeln (' enumUnknownDefaultCase: $enumUnknownDefaultCase ,' );
576
585
buffer.writeln (' wrapper: $wrapper ,' );
577
586
buffer
@@ -629,10 +638,12 @@ class InlineSchemaOptions {
629
638
String toString () {
630
639
final buffer = StringBuffer ();
631
640
buffer.writeln ('InlineSchemaOptions(' );
632
- if (arrayItemSuffix != null )
641
+ if (arrayItemSuffix != null ) {
633
642
buffer.writeln (' arrayItemSuffix: "$arrayItemSuffix ",' );
634
- if (mapItemSuffix != null )
643
+ }
644
+ if (mapItemSuffix != null ) {
635
645
buffer.writeln (' mapItemSuffix: "$mapItemSuffix ",' );
646
+ }
636
647
buffer.writeln (' skipSchemaReuse: $skipSchemaReuse ,' );
637
648
buffer
638
649
.writeln (' refactorAllofInlineSchemas: $refactorAllofInlineSchemas ,' );
@@ -694,6 +705,7 @@ class DioProperties extends AdditionalProperties {
694
705
map['serializationLibrary' ]),
695
706
super .fromMap (map);
696
707
708
+ @override
697
709
Map <String , dynamic > toMap () => Map .from (super .toMap ())
698
710
..addAll ({
699
711
if (dateLibrary != null )
@@ -713,10 +725,12 @@ class DioProperties extends AdditionalProperties {
713
725
.replaceAll (RegExp (r'AdditionalProperties\(|\)$' ), '' )
714
726
.replaceAll ('\n ' , '\n ' )); // Indent base class fields
715
727
if (dateLibrary != null ) buffer.writeln (' dateLibrary: $dateLibrary ,' );
716
- if (nullableFields != null )
728
+ if (nullableFields != null ) {
717
729
buffer.writeln (' nullableFields: $nullableFields ,' );
718
- if (serializationLibrary != null )
730
+ }
731
+ if (serializationLibrary != null ) {
719
732
buffer.writeln (' serializationLibrary: $serializationLibrary ,' );
733
+ }
720
734
buffer.write (')' );
721
735
return buffer.toString ();
722
736
}
@@ -783,6 +797,7 @@ class DioAltProperties extends AdditionalProperties {
783
797
pubspecDevDependencies = map['pubspecDevDependencies' ],
784
798
super .fromMap (map);
785
799
800
+ @override
786
801
Map <String , dynamic > toMap () => Map .from (super .toMap ())
787
802
..addAll ({
788
803
if (listAnyOf != null ) 'listAnyOf' : listAnyOf,
@@ -805,10 +820,12 @@ class DioAltProperties extends AdditionalProperties {
805
820
806
821
// Add DioAltProperties-specific fields
807
822
if (listAnyOf != null ) buffer.writeln (' listAnyOf: $listAnyOf ,' );
808
- if (pubspecDependencies != null )
823
+ if (pubspecDependencies != null ) {
809
824
buffer.writeln (' pubspecDependencies: "$pubspecDependencies ",' );
810
- if (pubspecDevDependencies != null )
825
+ }
826
+ if (pubspecDevDependencies != null ) {
811
827
buffer.writeln (' pubspecDevDependencies: "$pubspecDevDependencies ",' );
828
+ }
812
829
813
830
buffer.write (')' );
814
831
return buffer.toString ();
0 commit comments