Skip to content

Commit b13b29b

Browse files
Merge remote-tracking branch 'origin/master' into release
2 parents bb3b4e8 + 4cfe4e2 commit b13b29b

File tree

276 files changed

+681
-812
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

276 files changed

+681
-812
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## [23.9.0] - Aspose Words Cloud for Dart 23.9 Release Notes
2+
3+
- Support for class inheritance in responses from the server.
4+
5+
16
## [23.6.0] - Aspose Words Cloud for Dart 23.6 Release Notes
27

38
- Fix XMLHttpRequest in web applications.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Add this dependency to your *pubspec.yaml*:
2727

2828
```yaml
2929
dependencies:
30-
aspose_words_cloud: 23.8.0
30+
aspose_words_cloud: 23.9.0
3131
```
3232
3333
## Getting Started

lib/src/api_client.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ class ApiClient {
503503

504504
var httpRequest = http.Request(requestData.method, Uri.parse(requestData.url));
505505
httpRequest.headers['x-aspose-client'] = 'dart sdk';
506-
httpRequest.headers['x-aspose-client-version'] = '23.8';
506+
httpRequest.headers['x-aspose-client-version'] = '23.9';
507507
httpRequest.headers['Authorization'] = await _getAuthToken();
508508
httpRequest.headers.addAll(requestData.headers);
509509

lib/src/models/api_error.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,7 @@ class ApiError implements ModelBase {
9191
}
9292

9393
if (json.containsKey('InnerError')) {
94-
innerError = ApiError();
95-
innerError!.deserialize(json['InnerError'] as Map<String, dynamic>);
94+
innerError = ModelBase.createInstance< ApiError >(json['InnerError'] as Map<String, dynamic>);
9695
} else {
9796
innerError = null;
9897
}

lib/src/models/available_fonts_response.dart

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,7 @@ class AvailableFontsResponse extends WordsResponse {
6969
// Array processing
7070
additionalFonts = <FontInfo>[];
7171
for(final _element in json['AdditionalFonts']) {
72-
var _elementValue = FontInfo();
73-
_elementValue.deserialize(_element as Map<String, dynamic>);
74-
additionalFonts!.add(_elementValue);
72+
additionalFonts!.add(ModelBase.createInstance< FontInfo >(_element as Map<String, dynamic>));
7573
}
7674
} else {
7775
additionalFonts = null;
@@ -81,9 +79,7 @@ class AvailableFontsResponse extends WordsResponse {
8179
// Array processing
8280
customFonts = <FontInfo>[];
8381
for(final _element in json['CustomFonts']) {
84-
var _elementValue = FontInfo();
85-
_elementValue.deserialize(_element as Map<String, dynamic>);
86-
customFonts!.add(_elementValue);
82+
customFonts!.add(ModelBase.createInstance< FontInfo >(_element as Map<String, dynamic>));
8783
}
8884
} else {
8985
customFonts = null;
@@ -93,9 +89,7 @@ class AvailableFontsResponse extends WordsResponse {
9389
// Array processing
9490
systemFonts = <FontInfo>[];
9591
for(final _element in json['SystemFonts']) {
96-
var _elementValue = FontInfo();
97-
_elementValue.deserialize(_element as Map<String, dynamic>);
98-
systemFonts!.add(_elementValue);
92+
systemFonts!.add(ModelBase.createInstance< FontInfo >(_element as Map<String, dynamic>));
9993
}
10094
} else {
10195
systemFonts = null;

lib/src/models/bmp_save_options_data.dart

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,7 @@ class BmpSaveOptionsData extends ImageSaveOptionsData {
5252
}
5353

5454
if (json.containsKey('CustomTimeZoneInfoData')) {
55-
customTimeZoneInfoData = TimeZoneInfoData();
56-
customTimeZoneInfoData!.deserialize(json['CustomTimeZoneInfoData'] as Map<String, dynamic>);
55+
customTimeZoneInfoData = ModelBase.createInstance< TimeZoneInfoData >(json['CustomTimeZoneInfoData'] as Map<String, dynamic>);
5756
} else {
5857
customTimeZoneInfoData = null;
5958
}
@@ -152,8 +151,7 @@ class BmpSaveOptionsData extends ImageSaveOptionsData {
152151
}
153152

154153
if (json.containsKey('MetafileRenderingOptions')) {
155-
metafileRenderingOptions = MetafileRenderingOptionsData();
156-
metafileRenderingOptions!.deserialize(json['MetafileRenderingOptions'] as Map<String, dynamic>);
154+
metafileRenderingOptions = ModelBase.createInstance< MetafileRenderingOptionsData >(json['MetafileRenderingOptions'] as Map<String, dynamic>);
157155
} else {
158156
metafileRenderingOptions = null;
159157
}

lib/src/models/bookmark.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,7 @@ class Bookmark extends LinkElement {
5353

5454
super.deserialize(json);
5555
if (json.containsKey('Link')) {
56-
link = WordsApiLink();
57-
link!.deserialize(json['Link'] as Map<String, dynamic>);
56+
link = ModelBase.createInstance< WordsApiLink >(json['Link'] as Map<String, dynamic>);
5857
} else {
5958
link = null;
6059
}

lib/src/models/bookmark_insert.dart

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,15 +65,13 @@ class BookmarkInsert extends BookmarkData {
6565
}
6666

6767
if (json.containsKey('EndRange')) {
68-
endRange = NewDocumentPosition();
69-
endRange!.deserialize(json['EndRange'] as Map<String, dynamic>);
68+
endRange = ModelBase.createInstance< NewDocumentPosition >(json['EndRange'] as Map<String, dynamic>);
7069
} else {
7170
endRange = null;
7271
}
7372

7473
if (json.containsKey('StartRange')) {
75-
startRange = NewDocumentPosition();
76-
startRange!.deserialize(json['StartRange'] as Map<String, dynamic>);
74+
startRange = ModelBase.createInstance< NewDocumentPosition >(json['StartRange'] as Map<String, dynamic>);
7775
} else {
7876
startRange = null;
7977
}

lib/src/models/bookmark_response.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,7 @@ class BookmarkResponse extends WordsResponse {
5252
}
5353

5454
if (json.containsKey('Bookmark')) {
55-
bookmark = Bookmark();
56-
bookmark!.deserialize(json['Bookmark'] as Map<String, dynamic>);
55+
bookmark = ModelBase.createInstance< Bookmark >(json['Bookmark'] as Map<String, dynamic>);
5756
} else {
5857
bookmark = null;
5958
}

lib/src/models/bookmarks.dart

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,7 @@ class Bookmarks extends LinkElement {
4646

4747
super.deserialize(json);
4848
if (json.containsKey('Link')) {
49-
link = WordsApiLink();
50-
link!.deserialize(json['Link'] as Map<String, dynamic>);
49+
link = ModelBase.createInstance< WordsApiLink >(json['Link'] as Map<String, dynamic>);
5150
} else {
5251
link = null;
5352
}
@@ -56,9 +55,7 @@ class Bookmarks extends LinkElement {
5655
// Array processing
5756
bookmarkList = <Bookmark>[];
5857
for(final _element in json['BookmarkList']) {
59-
var _elementValue = Bookmark();
60-
_elementValue.deserialize(_element as Map<String, dynamic>);
61-
bookmarkList!.add(_elementValue);
58+
bookmarkList!.add(ModelBase.createInstance< Bookmark >(_element as Map<String, dynamic>));
6259
}
6360
} else {
6461
bookmarkList = null;

0 commit comments

Comments
 (0)