forked from eatvio/eatvio_app
fix(profile): Issue-523
This commit is contained in:
@@ -15,6 +15,9 @@ abstract class CardModel with _$CardModel {
|
||||
}
|
||||
|
||||
bool parseBool(dynamic json) {
|
||||
if (json == null) {
|
||||
throw Exception('parseBool: json is null');
|
||||
}
|
||||
if (json == 1 || json == true || json == '1') {
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user