Skip to content

Commit d04f247

Browse files
committed
add login id to jwt request
1 parent bb83aff commit d04f247

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

lib/basic_api/generated/freshchat_user_jwt_send.dart

+9
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ class FreshworksUserJwtRequest extends Request {
99
required this.serviceToken,
1010
required this.referrer,
1111
required this.extraFields,
12+
required this.loginId,
1213
this.service = 'freshworks_user_jwt',
1314
super.msgType = 'freshworks_user_jwt',
1415
super.passthrough,
@@ -23,6 +24,7 @@ class FreshworksUserJwtRequest extends Request {
2324
extraFields: ExtraFields.fromJson(json['extra_fields']),
2425
passthrough: json['passthrough'] as Map<String, dynamic>?,
2526
reqId: json['req_id'] as int?,
27+
loginId: json['login_id'] as String,
2628
);
2729

2830
/// The service for the request, same as msgType.
@@ -37,10 +39,14 @@ class FreshworksUserJwtRequest extends Request {
3739
/// Extra fields for the request.
3840
final ExtraFields extraFields;
3941

42+
/// Login ID for the request.
43+
final String loginId;
44+
4045
/// Converts this instance to JSON.
4146
@override
4247
Map<String, dynamic> toJson() => <String, dynamic>{
4348
'service_token': serviceToken,
49+
'login_id': loginId,
4450
'referrer': referrer,
4551
'extra_fields': extraFields.toJson(),
4652
'service': service, // Add service field to JSON
@@ -57,6 +63,7 @@ class FreshworksUserJwtRequest extends Request {
5763
String? service,
5864
Map<String, dynamic>? passthrough,
5965
int? reqId,
66+
String? loginId,
6067
}) =>
6168
FreshworksUserJwtRequest(
6269
serviceToken: serviceToken ?? this.serviceToken,
@@ -65,6 +72,7 @@ class FreshworksUserJwtRequest extends Request {
6572
service: service ?? this.service, // Include service in copy
6673
passthrough: passthrough ?? this.passthrough,
6774
reqId: reqId ?? this.reqId,
75+
loginId: loginId ?? this.loginId,
6876
);
6977

7078
/// Override equatable class.
@@ -76,6 +84,7 @@ class FreshworksUserJwtRequest extends Request {
7684
service, // Include service in props for equality
7785
passthrough,
7886
reqId,
87+
loginId,
7988
];
8089
}
8190

0 commit comments

Comments
 (0)