import 'package:freezed_annotation/freezed_annotation.dart';

part 'user_profile_model.freezed.dart';

part 'user_profile_model.g.dart';

@freezed
abstract class UserProfileModel with _$UserProfileModel {
  const factory UserProfileModel({
    String? accessToken,
    String? expiresIn,
    String? scope,
    String? expireTime,
    String? mobile,
    String? fullname,
    String? firstname,
    String? lastname,
    String? city,
    String? province,
    String? nationalCode,
    String? nationalId,
    String? birthday,
    String? image,
    int? baseOrder,
    List<String>? role,
  }) = _UserProfileModel;

  factory UserProfileModel.fromJson(Map<String, dynamic> json) =>
      _$UserProfileModelFromJson(json);
}
