Skip to content

Commit

Permalink
🚑 Fix blacklist user parse from json.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexV525 committed Feb 16, 2020
1 parent bf4b975 commit 43b6a46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/model/blacklist_user.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ class BlacklistUser {
BlacklistUser({this.uid, this.username});

BlacklistUser.fromJson(Map<String, dynamic> json) {
uid = json['uid'];
username = json['username'];
uid = int.parse(json['uid'].toString());
username = json['username'].toString();
}

Map<String, dynamic> toJson() {
Expand Down

0 comments on commit 43b6a46

Please sign in to comment.