import 'package:freezed_annotation/freezed_annotation.dart'; part 'mugenapp.freezed.dart'; part 'mugenapp.g.dart'; @Freezed(copyWith: false) class MugenAppStartAuthInfo with _$MugenAppStartAuthInfo { const factory MugenAppStartAuthInfo({ required String loginUrl, required String loginRequestKey, @Default(0) int ttl, }) = _MugenAppStartAuthInfo; factory MugenAppStartAuthInfo.fromJson(Map json) => _$MugenAppStartAuthInfoFromJson(json); } @Freezed(copyWith: false) class MugenAppStartAuthResponse with _$MugenAppStartAuthResponse { const factory MugenAppStartAuthResponse({required MugenAppStartAuthInfo startauth}) = _MugenAppStartAuthResponse; factory MugenAppStartAuthResponse.fromJson(Map json) => _$MugenAppStartAuthResponseFromJson(json); } @Freezed(copyWith: false) class MugenAppAttemptAuthInfo with _$MugenAppAttemptAuthInfo { const factory MugenAppAttemptAuthInfo({ required String status, int? userid, String? username, }) = _MugenAppAttemptAuthInfo; factory MugenAppAttemptAuthInfo.fromJson(Map json) => _$MugenAppAttemptAuthInfoFromJson(json); } @Freezed(copyWith: false) class MugenAppAttemptAuthResponse with _$MugenAppAttemptAuthResponse { const factory MugenAppAttemptAuthResponse({ required MugenAppAttemptAuthInfo attemptauth, }) = _MugenAppAttemptAuthResponse; factory MugenAppAttemptAuthResponse.fromJson(Map json) => _$MugenAppAttemptAuthResponseFromJson(json); }