Update Response and Requests authored by Nicholas Sarian's avatar Nicholas Sarian
...@@ -21,6 +21,7 @@ const CreatePlayerRequest({ ...@@ -21,6 +21,7 @@ const CreatePlayerRequest({
required this.section, required this.section,
}); });
``` ```
Note: the fields in the request needs to match the object in the backend so that the json conversion will work properly when a response has been received.
To check for equality (such as `if (request == createPlayerRequest)`), the request has a props method from Equatable that overrides the default props method: To check for equality (such as `if (request == createPlayerRequest)`), the request has a props method from Equatable that overrides the default props method:
```dart ```dart
... ...
......