You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
1.5 KiB
Dart
48 lines
1.5 KiB
Dart
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<String, dynamic> json) =>
|
|
_$MugenAppStartAuthInfoFromJson(json);
|
|
}
|
|
|
|
@Freezed(copyWith: false)
|
|
class MugenAppStartAuthResponse with _$MugenAppStartAuthResponse {
|
|
const factory MugenAppStartAuthResponse({required MugenAppStartAuthInfo startauth}) =
|
|
_MugenAppStartAuthResponse;
|
|
|
|
factory MugenAppStartAuthResponse.fromJson(Map<String, dynamic> 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<String, dynamic> json) =>
|
|
_$MugenAppAttemptAuthInfoFromJson(json);
|
|
}
|
|
|
|
@Freezed(copyWith: false)
|
|
class MugenAppAttemptAuthResponse with _$MugenAppAttemptAuthResponse {
|
|
const factory MugenAppAttemptAuthResponse({
|
|
required MugenAppAttemptAuthInfo attemptauth,
|
|
}) = _MugenAppAttemptAuthResponse;
|
|
|
|
factory MugenAppAttemptAuthResponse.fromJson(Map<String, dynamic> json) =>
|
|
_$MugenAppAttemptAuthResponseFromJson(json);
|
|
}
|