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.
66 lines
1.6 KiB
Dart
66 lines
1.6 KiB
Dart
2 years ago
|
import 'package:json_annotation/json_annotation.dart';
|
||
|
|
||
|
part 'mugenapp.g.dart';
|
||
|
|
||
|
@JsonSerializable()
|
||
|
class MugenAppStartAuthInfo {
|
||
|
String loginUrl;
|
||
|
String loginRequestKey;
|
||
|
int ttl;
|
||
|
|
||
|
MugenAppStartAuthInfo({
|
||
|
required this.loginUrl,
|
||
|
required this.loginRequestKey,
|
||
|
this.ttl = 0,
|
||
|
});
|
||
|
|
||
|
factory MugenAppStartAuthInfo.fromJson(Map<String, dynamic> json) =>
|
||
|
_$MugenAppStartAuthInfoFromJson(json);
|
||
|
|
||
|
Map<String, dynamic> toJson() => _$MugenAppStartAuthInfoToJson(this);
|
||
|
}
|
||
|
|
||
|
@JsonSerializable()
|
||
|
class MugenAppStartAuthResponse {
|
||
|
MugenAppStartAuthInfo startauth;
|
||
|
|
||
|
MugenAppStartAuthResponse({required this.startauth});
|
||
|
|
||
|
factory MugenAppStartAuthResponse.fromJson(Map<String, dynamic> json) =>
|
||
|
_$MugenAppStartAuthResponseFromJson(json);
|
||
|
|
||
|
Map<String, dynamic> toJson() => _$MugenAppStartAuthResponseToJson(this);
|
||
|
}
|
||
|
|
||
|
@JsonSerializable()
|
||
|
class MugenAppAttemptAuthInfo {
|
||
|
String status;
|
||
|
int? userid;
|
||
|
String? username;
|
||
|
|
||
|
MugenAppAttemptAuthInfo({
|
||
|
required this.status,
|
||
|
this.userid,
|
||
|
this.username,
|
||
|
});
|
||
|
|
||
|
factory MugenAppAttemptAuthInfo.fromJson(Map<String, dynamic> json) =>
|
||
|
_$MugenAppAttemptAuthInfoFromJson(json);
|
||
|
|
||
|
Map<String, dynamic> toJson() => _$MugenAppAttemptAuthInfoToJson(this);
|
||
|
}
|
||
|
|
||
|
@JsonSerializable()
|
||
|
class MugenAppAttemptAuthResponse {
|
||
|
MugenAppAttemptAuthInfo attemptauth;
|
||
|
|
||
|
MugenAppAttemptAuthResponse({
|
||
|
required this.attemptauth,
|
||
|
});
|
||
|
|
||
|
factory MugenAppAttemptAuthResponse.fromJson(Map<String, dynamic> json) =>
|
||
|
_$MugenAppAttemptAuthResponseFromJson(json);
|
||
|
|
||
|
Map<String, dynamic> toJson() => _$MugenAppAttemptAuthResponseToJson(this);
|
||
|
}
|