import 'package:freezed_annotation/freezed_annotation.dart';

part 'auth_response_model.freezed.dart';
part 'auth_response_model.g.dart';

@freezed
abstract class AuthResponseModel with _$AuthResponseModel {
  const factory AuthResponseModel({
    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,
  }) = _AuthResponseModel;

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