mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-03 17:40:43 +00:00
Add nullability check on description [skip ci]
This commit is contained in:
parent
7235d8c9c2
commit
f77a9592b2
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@ class TwitterUser {
|
|||
id: json['data']['id'] as String,
|
||||
username: json['data']['username'] as String,
|
||||
name: json['data']['name'] as String,
|
||||
description: json['data']['description'] as String,
|
||||
description: json['data']['description'] as String? ?? '',
|
||||
tweets: json['includes'] != null
|
||||
? List.from(json['includes']['tweets'] as List)
|
||||
.map((e) => Tweet.fromJson(e as Map<String, dynamic>))
|
||||
|
|
Loading…
Reference in a new issue