Skip to content

Commit 7c4c81d

Browse files
committed
convert init registration response to extension type
1 parent 3df53ac commit 7c4c81d

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed
Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,14 @@
1-
import 'package:js/js.dart';
1+
import 'dart:js_interop';
22

33
import 'response.dart';
44

5-
/// The static interop class for the Gigya InitRegistration API response.
5+
/// The extension type for the Gigya InitRegistration API response.
66
///
77
/// See also: https://help.sap.com/docs/SAP_CUSTOMER_DATA_CLOUD/8b8d6fffe113457094a17701f63e3d6a/4136cef070b21014bbc5a10ce4041860.html?locale=en-US#response-example
88
@JS()
99
@anonymous
1010
@staticInterop
11-
class InitRegistrationResponse extends Response {}
12-
13-
/// This extension defines the static interop definition
14-
/// for the [InitRegistrationResponse] class.
15-
extension InitRegistrationResponseExtension on InitRegistrationResponse {
11+
extension type InitRegistrationResponse(Response baseResponse) {
1612
/// The registration token for the registration.
1713
external String? get regToken;
18-
}
14+
}

0 commit comments

Comments
 (0)