Line data Source code
1 : import 'package:freezed_annotation/freezed_annotation.dart';
2 :
3 : import '../../../types.dart';
4 :
5 : part 'profile_data.freezed.dart';
6 : part 'profile_data.g.dart';
7 :
8 : @freezed
9 : class ProfileData with _$ProfileData {
10 : factory ProfileData({
11 : required String id,
12 : String? displayName,
13 : String? photoURL,
14 : String? firstName,
15 : String? lastName,
16 : required Map<ProvidersEnum, AuthorizationEnum> authorizationStatus,
17 : }) = _ProfileData;
18 :
19 0 : factory ProfileData.fromJson(JsonMap json) => _$ProfileDataFromJson(json);
20 : }
|