@@ -92,18 +92,17 @@ class ServiceTokenResponse extends ServiceTokenResponseModel {
92
92
serviceToken: serviceToken ?? this .serviceToken,
93
93
);
94
94
}
95
-
96
95
/// Service token model class.
97
96
abstract class ServiceTokenModel {
98
97
/// Initializes Service token model class .
99
98
const ServiceTokenModel ({
100
99
this .banxa,
101
100
this .ctrader,
102
101
this .dxtrade,
102
+ this .freshworksAuthJwt,
103
+ this .freshworksUserJwt,
103
104
this .onfido,
104
- this .pandats,
105
105
this .sendbird,
106
- this .wyre,
107
106
});
108
107
109
108
/// Banxa order data.
@@ -115,17 +114,17 @@ abstract class ServiceTokenModel {
115
114
/// Deriv X data.
116
115
final Dxtrade ? dxtrade;
117
116
117
+ /// Freshchat data.
118
+ final FreshworksAuthJwt ? freshworksAuthJwt;
119
+
120
+ /// Freshchat data.
121
+ final FreshworksUserJwt ? freshworksUserJwt;
122
+
118
123
/// Onfido data.
119
124
final Onfido ? onfido;
120
125
121
- /// Deriv EZ data.
122
- final Pandats ? pandats;
123
-
124
126
/// Sendbird data.
125
127
final Sendbird ? sendbird;
126
-
127
- /// Wyre reservation data.
128
- final Wyre ? wyre;
129
128
}
130
129
131
130
/// Service token class.
@@ -135,10 +134,10 @@ class ServiceToken extends ServiceTokenModel {
135
134
super .banxa,
136
135
super .ctrader,
137
136
super .dxtrade,
137
+ super .freshworksAuthJwt,
138
+ super .freshworksUserJwt,
138
139
super .onfido,
139
- super .pandats,
140
140
super .sendbird,
141
- super .wyre,
142
141
});
143
142
144
143
/// Creates an instance from JSON.
@@ -148,13 +147,16 @@ class ServiceToken extends ServiceTokenModel {
148
147
json['ctrader' ] == null ? null : Ctrader .fromJson (json['ctrader' ]),
149
148
dxtrade:
150
149
json['dxtrade' ] == null ? null : Dxtrade .fromJson (json['dxtrade' ]),
150
+ freshworksAuthJwt: json['freshworks_auth_jwt' ] == null
151
+ ? null
152
+ : FreshworksAuthJwt .fromJson (json['freshworks_auth_jwt' ]),
153
+ freshworksUserJwt: json['freshworks_user_jwt' ] == null
154
+ ? null
155
+ : FreshworksUserJwt .fromJson (json['freshworks_user_jwt' ]),
151
156
onfido: json['onfido' ] == null ? null : Onfido .fromJson (json['onfido' ]),
152
- pandats:
153
- json['pandats' ] == null ? null : Pandats .fromJson (json['pandats' ]),
154
157
sendbird: json['sendbird' ] == null
155
158
? null
156
159
: Sendbird .fromJson (json['sendbird' ]),
157
- wyre: json['wyre' ] == null ? null : Wyre .fromJson (json['wyre' ]),
158
160
);
159
161
160
162
/// Converts an instance to JSON.
@@ -170,18 +172,18 @@ class ServiceToken extends ServiceTokenModel {
170
172
if (dxtrade != null ) {
171
173
resultMap['dxtrade' ] = dxtrade! .toJson ();
172
174
}
175
+ if (freshworksAuthJwt != null ) {
176
+ resultMap['freshworks_auth_jwt' ] = freshworksAuthJwt! .toJson ();
177
+ }
178
+ if (freshworksUserJwt != null ) {
179
+ resultMap['freshworks_user_jwt' ] = freshworksUserJwt! .toJson ();
180
+ }
173
181
if (onfido != null ) {
174
182
resultMap['onfido' ] = onfido! .toJson ();
175
183
}
176
- if (pandats != null ) {
177
- resultMap['pandats' ] = pandats! .toJson ();
178
- }
179
184
if (sendbird != null ) {
180
185
resultMap['sendbird' ] = sendbird! .toJson ();
181
186
}
182
- if (wyre != null ) {
183
- resultMap['wyre' ] = wyre! .toJson ();
184
- }
185
187
186
188
return resultMap;
187
189
}
@@ -191,22 +193,21 @@ class ServiceToken extends ServiceTokenModel {
191
193
Banxa ? banxa,
192
194
Ctrader ? ctrader,
193
195
Dxtrade ? dxtrade,
196
+ FreshworksAuthJwt ? freshworksAuthJwt,
197
+ FreshworksUserJwt ? freshworksUserJwt,
194
198
Onfido ? onfido,
195
- Pandats ? pandats,
196
199
Sendbird ? sendbird,
197
- Wyre ? wyre,
198
200
}) =>
199
201
ServiceToken (
200
202
banxa: banxa ?? this .banxa,
201
203
ctrader: ctrader ?? this .ctrader,
202
204
dxtrade: dxtrade ?? this .dxtrade,
205
+ freshworksAuthJwt: freshworksAuthJwt ?? this .freshworksAuthJwt,
206
+ freshworksUserJwt: freshworksUserJwt ?? this .freshworksUserJwt,
203
207
onfido: onfido ?? this .onfido,
204
- pandats: pandats ?? this .pandats,
205
208
sendbird: sendbird ?? this .sendbird,
206
- wyre: wyre ?? this .wyre,
207
209
);
208
210
}
209
-
210
211
/// Banxa model class.
211
212
abstract class BanxaModel {
212
213
/// Initializes Banxa model class .
@@ -265,7 +266,6 @@ class Banxa extends BanxaModel {
265
266
urlIframe: urlIframe ?? this .urlIframe,
266
267
);
267
268
}
268
-
269
269
/// Ctrader model class.
270
270
abstract class CtraderModel {
271
271
/// Initializes Ctrader model class .
@@ -306,7 +306,6 @@ class Ctrader extends CtraderModel {
306
306
token: token ?? this .token,
307
307
);
308
308
}
309
-
310
309
/// Dxtrade model class.
311
310
abstract class DxtradeModel {
312
311
/// Initializes Dxtrade model class .
@@ -347,27 +346,27 @@ class Dxtrade extends DxtradeModel {
347
346
token: token ?? this .token,
348
347
);
349
348
}
350
-
351
- /// Onfido model class.
352
- abstract class OnfidoModel {
353
- /// Initializes Onfido model class .
354
- const OnfidoModel ({
349
+ /// Freshworks auth jwt model class.
350
+ abstract class FreshworksAuthJwtModel {
351
+ /// Initializes Freshworks auth jwt model class .
352
+ const FreshworksAuthJwtModel ({
355
353
this .token,
356
354
});
357
355
358
- /// Onfido token.
356
+ /// Freshchat auth JWT token.
359
357
final String ? token;
360
358
}
361
359
362
- /// Onfido class.
363
- class Onfido extends OnfidoModel {
364
- /// Initializes Onfido class.
365
- const Onfido ({
360
+ /// Freshworks auth jwt class.
361
+ class FreshworksAuthJwt extends FreshworksAuthJwtModel {
362
+ /// Initializes Freshworks auth jwt class.
363
+ const FreshworksAuthJwt ({
366
364
super .token,
367
365
});
368
366
369
367
/// Creates an instance from JSON.
370
- factory Onfido .fromJson (Map <String , dynamic > json) => Onfido (
368
+ factory FreshworksAuthJwt .fromJson (Map <String , dynamic > json) =>
369
+ FreshworksAuthJwt (
371
370
token: json['token' ],
372
371
);
373
372
@@ -381,34 +380,34 @@ class Onfido extends OnfidoModel {
381
380
}
382
381
383
382
/// Creates a copy of instance with given parameters.
384
- Onfido copyWith ({
383
+ FreshworksAuthJwt copyWith ({
385
384
String ? token,
386
385
}) =>
387
- Onfido (
386
+ FreshworksAuthJwt (
388
387
token: token ?? this .token,
389
388
);
390
389
}
391
-
392
- /// Pandats model class.
393
- abstract class PandatsModel {
394
- /// Initializes Pandats model class .
395
- const PandatsModel ({
390
+ /// Freshworks user jwt model class.
391
+ abstract class FreshworksUserJwtModel {
392
+ /// Initializes Freshworks user jwt model class .
393
+ const FreshworksUserJwtModel ({
396
394
this .token,
397
395
});
398
396
399
- /// Deriv EZ SSO token
397
+ /// Freshchat user JWT token.
400
398
final String ? token;
401
399
}
402
400
403
- /// Pandats class.
404
- class Pandats extends PandatsModel {
405
- /// Initializes Pandats class.
406
- const Pandats ({
401
+ /// Freshworks user jwt class.
402
+ class FreshworksUserJwt extends FreshworksUserJwtModel {
403
+ /// Initializes Freshworks user jwt class.
404
+ const FreshworksUserJwt ({
407
405
super .token,
408
406
});
409
407
410
408
/// Creates an instance from JSON.
411
- factory Pandats .fromJson (Map <String , dynamic > json) => Pandats (
409
+ factory FreshworksUserJwt .fromJson (Map <String , dynamic > json) =>
410
+ FreshworksUserJwt (
412
411
token: json['token' ],
413
412
);
414
413
@@ -422,14 +421,53 @@ class Pandats extends PandatsModel {
422
421
}
423
422
424
423
/// Creates a copy of instance with given parameters.
425
- Pandats copyWith ({
424
+ FreshworksUserJwt copyWith ({
426
425
String ? token,
427
426
}) =>
428
- Pandats (
427
+ FreshworksUserJwt (
429
428
token: token ?? this .token,
430
429
);
431
430
}
431
+ /// Onfido model class.
432
+ abstract class OnfidoModel {
433
+ /// Initializes Onfido model class .
434
+ const OnfidoModel ({
435
+ this .token,
436
+ });
437
+
438
+ /// Onfido token.
439
+ final String ? token;
440
+ }
441
+
442
+ /// Onfido class.
443
+ class Onfido extends OnfidoModel {
444
+ /// Initializes Onfido class.
445
+ const Onfido ({
446
+ super .token,
447
+ });
448
+
449
+ /// Creates an instance from JSON.
450
+ factory Onfido .fromJson (Map <String , dynamic > json) => Onfido (
451
+ token: json['token' ],
452
+ );
453
+
454
+ /// Converts an instance to JSON.
455
+ Map <String , dynamic > toJson () {
456
+ final Map <String , dynamic > resultMap = < String , dynamic > {};
457
+
458
+ resultMap['token' ] = token;
459
+
460
+ return resultMap;
461
+ }
432
462
463
+ /// Creates a copy of instance with given parameters.
464
+ Onfido copyWith ({
465
+ String ? token,
466
+ }) =>
467
+ Onfido (
468
+ token: token ?? this .token,
469
+ );
470
+ }
433
471
/// Sendbird model class.
434
472
abstract class SendbirdModel {
435
473
/// Initializes Sendbird model class .
@@ -488,53 +526,3 @@ class Sendbird extends SendbirdModel {
488
526
token: token ?? this .token,
489
527
);
490
528
}
491
-
492
- /// Wyre model class.
493
- abstract class WyreModel {
494
- /// Initializes Wyre model class .
495
- const WyreModel ({
496
- this .token,
497
- this .url,
498
- });
499
-
500
- /// Wyre reservation id token
501
- final String ? token;
502
-
503
- /// Wyre reservation URL
504
- final String ? url;
505
- }
506
-
507
- /// Wyre class.
508
- class Wyre extends WyreModel {
509
- /// Initializes Wyre class.
510
- const Wyre ({
511
- super .token,
512
- super .url,
513
- });
514
-
515
- /// Creates an instance from JSON.
516
- factory Wyre .fromJson (Map <String , dynamic > json) => Wyre (
517
- token: json['token' ],
518
- url: json['url' ],
519
- );
520
-
521
- /// Converts an instance to JSON.
522
- Map <String , dynamic > toJson () {
523
- final Map <String , dynamic > resultMap = < String , dynamic > {};
524
-
525
- resultMap['token' ] = token;
526
- resultMap['url' ] = url;
527
-
528
- return resultMap;
529
- }
530
-
531
- /// Creates a copy of instance with given parameters.
532
- Wyre copyWith ({
533
- String ? token,
534
- String ? url,
535
- }) =>
536
- Wyre (
537
- token: token ?? this .token,
538
- url: url ?? this .url,
539
- );
540
- }
0 commit comments