diff --git a/lib/src/deployments/deployments_api.dart b/lib/src/deployments/deployments_api.dart index 49827fa..831faa9 100644 --- a/lib/src/deployments/deployments_api.dart +++ b/lib/src/deployments/deployments_api.dart @@ -27,11 +27,11 @@ class DeploymentsApi { final payload = { 'version': version, - if (ownerName != null) 'ownerName': ownerName, - if (emailAddress != null) 'emailAddress': emailAddress, - if (comment != null) 'comment': comment, - if (scmIdentifier != null) 'scmIdentifier': scmIdentifier, - if (scmType != null) 'scmType': scmType, + 'ownerName': ?ownerName, + 'emailAddress': ?emailAddress, + 'comment': ?comment, + 'scmIdentifier': ?scmIdentifier, + 'scmType': ?scmType, 'deployedAt': DateTime.now().toUtc().toIso8601String(), }; diff --git a/pubspec.lock b/pubspec.lock index c3e1a65..2ce49d6 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -237,10 +237,10 @@ packages: dependency: "direct dev" description: name: lints - sha256: a5e2b223cb7c9c8efdc663ef484fdd95bb243bff242ef5b13e26883547fce9a0 + sha256: "12f842a479589fea194fe5c5a3095abc7be0c1f2ddfa9a0e76aed1dbd26a87df" url: "https://pub.dev" source: hosted - version: "6.0.0" + version: "6.1.0" logging: dependency: transitive description: