Skip to content

Commit b01711a

Browse files
committed
feat(ats): default destinyInformation to empty list in AtsLoadingParamsFormInput
1 parent 34a0e05 commit b01711a

5 files changed

Lines changed: 30 additions & 23 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 3.8.13
4+
5+
- Changed `destinyInformation` field in `AtsLoadingParamsFormInput` from nullable `List<AtsDestinyInformationInput>?` to non-nullable `List<AtsDestinyInformationInput>` with `@Default([])` to ensure it always defaults to an empty list.
6+
37
## 3.8.12
48

59
- Made `position` field nullable (`InboundPositionStructure?`) in `InboundStructure` and `InboundStructureInput` to support services without a position structure.

lib/src/ats/ats.freezed.dart

Lines changed: 15 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/src/ats/ats.g.dart

Lines changed: 9 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/src/ats/src/reception/loading_params_form_input.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ abstract class AtsLoadingParamsFormInput with _$AtsLoadingParamsFormInput {
6464
double? liquidWeight,
6565

6666
/// `destinyInformation` Destiny information only on modality seta
67-
List<AtsDestinyInformationInput>? destinyInformation,
67+
@Default([]) List<AtsDestinyInformationInput> destinyInformation,
6868
}) = _AtsLoadingParamsFormInput;
6969

7070
factory AtsLoadingParamsFormInput.fromJson(Map<String, dynamic> json) => _$AtsLoadingParamsFormInputFromJson(json);

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
description: Layrz API models for Dart/Flutter. This package contains the models
22
used by the Layrz API.
33
name: layrz_models
4-
version: "3.8.12"
4+
version: "3.8.13"
55
repository: https://github.com/goldenm-software/layrz_models
66

77
environment:

0 commit comments

Comments
 (0)