mirror of
https://github.com/twonlyapp/twonly-app.git
synced 2026-01-16 06:58:41 +00:00
25 lines
526 B
Dart
25 lines
526 B
Dart
import 'package:json_annotation/json_annotation.dart';
|
|
part 'userdata.g.dart';
|
|
|
|
@JsonSerializable()
|
|
class UserData {
|
|
UserData({
|
|
required this.userId,
|
|
required this.username,
|
|
required this.displayName,
|
|
});
|
|
|
|
String username;
|
|
String displayName;
|
|
|
|
String? avatarSvg;
|
|
String? avatarJson;
|
|
int? avatarCounter;
|
|
int? defaultShowTime;
|
|
|
|
final int userId;
|
|
|
|
factory UserData.fromJson(Map<String, dynamic> json) =>
|
|
_$UserDataFromJson(json);
|
|
Map<String, dynamic> toJson() => _$UserDataToJson(this);
|
|
}
|