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 json) => _$MugenAppStartAuthInfoFromJson(json); Map toJson() => _$MugenAppStartAuthInfoToJson(this); } @JsonSerializable() class MugenAppStartAuthResponse { MugenAppStartAuthInfo startauth; MugenAppStartAuthResponse({required this.startauth}); factory MugenAppStartAuthResponse.fromJson(Map json) => _$MugenAppStartAuthResponseFromJson(json); Map toJson() => _$MugenAppStartAuthResponseToJson(this); } @JsonSerializable() class MugenAppAttemptAuthInfo { String status; int? userid; String? username; MugenAppAttemptAuthInfo({ required this.status, this.userid, this.username, }); factory MugenAppAttemptAuthInfo.fromJson(Map json) => _$MugenAppAttemptAuthInfoFromJson(json); Map toJson() => _$MugenAppAttemptAuthInfoToJson(this); } @JsonSerializable() class MugenAppAttemptAuthResponse { MugenAppAttemptAuthInfo attemptauth; MugenAppAttemptAuthResponse({ required this.attemptauth, }); factory MugenAppAttemptAuthResponse.fromJson(Map json) => _$MugenAppAttemptAuthResponseFromJson(json); Map toJson() => _$MugenAppAttemptAuthResponseToJson(this); }