|
@@ -1273,6 +1273,46 @@ class AuditContractRecordRequest extends TokenRequest{
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+class GetTokenRequest {
|
|
|
+ String? grantType;
|
|
|
+ String? account;
|
|
|
+ String? password;
|
|
|
+ String? clientType;
|
|
|
+
|
|
|
+ GetTokenRequest({
|
|
|
+ this.grantType,
|
|
|
+ this.account,
|
|
|
+ this.password,
|
|
|
+ this.clientType,
|
|
|
+ });
|
|
|
+
|
|
|
+ factory GetTokenRequest.fromJson(Map<String, dynamic> map) {
|
|
|
+ return GetTokenRequest(
|
|
|
+ grantType: map['GrantType'],
|
|
|
+ account: map['Account'],
|
|
|
+ password: map['Password'],
|
|
|
+ clientType: map['ClientType'],
|
|
|
+ );
|
|
|
+ }
|
|
|
+
|
|
|
+ Map<String, dynamic> toJson() {
|
|
|
+ final map = Map<String, dynamic>();
|
|
|
+ if (grantType != null) {
|
|
|
+ map['GrantType'] = grantType;
|
|
|
+ }
|
|
|
+ if (account != null) {
|
|
|
+ map['Account'] = account;
|
|
|
+ }
|
|
|
+ if (password != null) {
|
|
|
+ map['Password'] = password;
|
|
|
+ }
|
|
|
+ if (clientType != null) {
|
|
|
+ map['ClientType'] = clientType;
|
|
|
+ }
|
|
|
+ return map;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
class CreateNotificationRequest extends TokenRequest{
|
|
|
String? code;
|
|
|
String? version;
|