1
0
mirror of https://github.com/git-touch/git-touch synced 2024-12-23 21:52:19 +01:00
git-touch-android-ios-app/lib/models/account.dart

31 lines
615 B
Dart

import 'package:json_annotation/json_annotation.dart';
import 'package:meta/meta.dart';
part 'account.g.dart';
@JsonSerializable()
class AccountModel {
String avatarUrl;
String token;
@JsonKey(ignore: true)
String platform;
@JsonKey(ignore: true)
String domain;
@JsonKey(ignore: true)
String login;
AccountModel({
@required this.avatarUrl,
@required this.token,
this.platform,
this.domain,
this.login,
});
factory AccountModel.fromJson(Map<String, dynamic> json) =>
_$AccountModelFromJson(json);
Map<String, dynamic> toJson() => _$AccountModelToJson(this);
}