Skip to content

Commit

Permalink
update model
Browse files Browse the repository at this point in the history
  • Loading branch information
brim-borium committed Nov 27, 2021
1 parent 1448c2a commit 623239d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class _HomeState extends State<Home> {
_connected = false;
var data = snapshot.data;
if (data != null) {
_connected = data.connected ?? false;
_connected = data.connected;
}
return Scaffold(
appBar: AppBar(
Expand Down
2 changes: 1 addition & 1 deletion lib/models/connection_status.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class ConnectionStatus {
});

@JsonKey(name: 'connected')
final bool? connected;
final bool connected;
@JsonKey(name: 'message')
final String? message;
@JsonKey(name: 'errorCode')
Expand Down
2 changes: 1 addition & 1 deletion lib/models/connection_status.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 623239d

Please sign in to comment.