@@ -341,8 +341,8 @@ class AWSRemoteSpecHeaderDelegate extends RemoteSpecHeaderDelegate {
341341
342342 const AWSRemoteSpecHeaderDelegate ({
343343 required this .bucket,
344- this .secretAccessKey = null ,
345- this .accessKeyId = null ,
344+ this .secretAccessKey,
345+ this .accessKeyId,
346346 }) : super ();
347347
348348 AWSRemoteSpecHeaderDelegate .fromMap (Map <String , dynamic > map)
@@ -359,7 +359,7 @@ class AWSRemoteSpecHeaderDelegate extends RemoteSpecHeaderDelegate {
359359 String ? path,
360360 }) {
361361 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' );
363363 }
364364
365365 // Use the provided credentials to the constructor, if any, otherwise
@@ -369,7 +369,7 @@ class AWSRemoteSpecHeaderDelegate extends RemoteSpecHeaderDelegate {
369369 secretAccessKey ?? Platform .environment['AWS_SECRET_ACCESS_KEY' ];
370370 if ((accessKey == null || accessKey.isEmpty) ||
371371 (secretKey == null || secretKey.isEmpty)) {
372- throw new AssertionError (
372+ throw AssertionError (
373373 'AWS_SECRET_KEY_ID & AWS_SECRET_ACCESS_KEY should be defined and not empty or they should be provided in the delegate constructor.' );
374374 }
375375
@@ -548,30 +548,39 @@ class AdditionalProperties {
548548 String toString () {
549549 final buffer = StringBuffer ();
550550 buffer.writeln ('AdditionalProperties(' );
551- if (allowUnicodeIdentifiers != null )
551+ if (allowUnicodeIdentifiers != null ) {
552552 buffer.writeln (' allowUnicodeIdentifiers: $allowUnicodeIdentifiers ,' );
553- if (ensureUniqueParams != null )
553+ }
554+ if (ensureUniqueParams != null ) {
554555 buffer.writeln (' ensureUniqueParams: $ensureUniqueParams ,' );
555- if (prependFormOrBodyParameters != null )
556+ }
557+ if (prependFormOrBodyParameters != null ) {
556558 buffer.writeln (
557559 ' prependFormOrBodyParameters: $prependFormOrBodyParameters ,' );
560+ }
558561 if (pubAuthor != null ) buffer.writeln (' pubAuthor: "$pubAuthor ",' );
559- if (pubAuthorEmail != null )
562+ if (pubAuthorEmail != null ) {
560563 buffer.writeln (' pubAuthorEmail: "$pubAuthorEmail ",' );
561- if (pubDescription != null )
564+ }
565+ if (pubDescription != null ) {
562566 buffer.writeln (' pubDescription: "$pubDescription ",' );
567+ }
563568 if (pubHomepage != null ) buffer.writeln (' pubHomepage: "$pubHomepage ",' );
564569 if (pubName != null ) buffer.writeln (' pubName: "$pubName ",' );
565570 if (pubVersion != null ) buffer.writeln (' pubVersion: "$pubVersion ",' );
566- if (sortModelPropertiesByRequiredFlag != null )
571+ if (sortModelPropertiesByRequiredFlag != null ) {
567572 buffer.writeln (
568573 ' sortModelPropertiesByRequiredFlag: $sortModelPropertiesByRequiredFlag ,' );
569- if (sortParamsByRequiredFlag != null )
574+ }
575+ if (sortParamsByRequiredFlag != null ) {
570576 buffer.writeln (' sortParamsByRequiredFlag: $sortParamsByRequiredFlag ,' );
571- if (sourceFolder != null )
577+ }
578+ if (sourceFolder != null ) {
572579 buffer.writeln (' sourceFolder: "$sourceFolder ",' );
573- if (useEnumExtension != null )
580+ }
581+ if (useEnumExtension != null ) {
574582 buffer.writeln (' useEnumExtension: $useEnumExtension ,' );
583+ }
575584 buffer.writeln (' enumUnknownDefaultCase: $enumUnknownDefaultCase ,' );
576585 buffer.writeln (' wrapper: $wrapper ,' );
577586 buffer
@@ -629,10 +638,12 @@ class InlineSchemaOptions {
629638 String toString () {
630639 final buffer = StringBuffer ();
631640 buffer.writeln ('InlineSchemaOptions(' );
632- if (arrayItemSuffix != null )
641+ if (arrayItemSuffix != null ) {
633642 buffer.writeln (' arrayItemSuffix: "$arrayItemSuffix ",' );
634- if (mapItemSuffix != null )
643+ }
644+ if (mapItemSuffix != null ) {
635645 buffer.writeln (' mapItemSuffix: "$mapItemSuffix ",' );
646+ }
636647 buffer.writeln (' skipSchemaReuse: $skipSchemaReuse ,' );
637648 buffer
638649 .writeln (' refactorAllofInlineSchemas: $refactorAllofInlineSchemas ,' );
@@ -694,6 +705,7 @@ class DioProperties extends AdditionalProperties {
694705 map['serializationLibrary' ]),
695706 super .fromMap (map);
696707
708+ @override
697709 Map <String , dynamic > toMap () => Map .from (super .toMap ())
698710 ..addAll ({
699711 if (dateLibrary != null )
@@ -713,10 +725,12 @@ class DioProperties extends AdditionalProperties {
713725 .replaceAll (RegExp (r'AdditionalProperties\(|\)$' ), '' )
714726 .replaceAll ('\n ' , '\n ' )); // Indent base class fields
715727 if (dateLibrary != null ) buffer.writeln (' dateLibrary: $dateLibrary ,' );
716- if (nullableFields != null )
728+ if (nullableFields != null ) {
717729 buffer.writeln (' nullableFields: $nullableFields ,' );
718- if (serializationLibrary != null )
730+ }
731+ if (serializationLibrary != null ) {
719732 buffer.writeln (' serializationLibrary: $serializationLibrary ,' );
733+ }
720734 buffer.write (')' );
721735 return buffer.toString ();
722736 }
@@ -783,6 +797,7 @@ class DioAltProperties extends AdditionalProperties {
783797 pubspecDevDependencies = map['pubspecDevDependencies' ],
784798 super .fromMap (map);
785799
800+ @override
786801 Map <String , dynamic > toMap () => Map .from (super .toMap ())
787802 ..addAll ({
788803 if (listAnyOf != null ) 'listAnyOf' : listAnyOf,
@@ -805,10 +820,12 @@ class DioAltProperties extends AdditionalProperties {
805820
806821 // Add DioAltProperties-specific fields
807822 if (listAnyOf != null ) buffer.writeln (' listAnyOf: $listAnyOf ,' );
808- if (pubspecDependencies != null )
823+ if (pubspecDependencies != null ) {
809824 buffer.writeln (' pubspecDependencies: "$pubspecDependencies ",' );
810- if (pubspecDevDependencies != null )
825+ }
826+ if (pubspecDevDependencies != null ) {
811827 buffer.writeln (' pubspecDevDependencies: "$pubspecDevDependencies ",' );
828+ }
812829
813830 buffer.write (')' );
814831 return buffer.toString ();
0 commit comments