mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-11-17 09:47:35 +00:00
17 lines
475 B
Dart
17 lines
475 B
Dart
|
class TwitterUser {
|
||
|
TwitterUser({required this.id, required this.username, required this.name, this.description});
|
||
|
|
||
|
final String id;
|
||
|
final String username;
|
||
|
final String name;
|
||
|
final String? description;
|
||
|
|
||
|
factory TwitterUser.fromJson(Map<String, dynamic> json) {
|
||
|
return TwitterUser(
|
||
|
id: json['id'] as String,
|
||
|
username: json['username'] as String,
|
||
|
name: json['name'] as String,
|
||
|
description: json['description'] as String?);
|
||
|
}
|
||
|
}
|