Skip to content

Commit

Permalink
Update github checkout version from v3 to v4
Browse files Browse the repository at this point in the history
  • Loading branch information
Denis-Averin committed Feb 28, 2024
1 parent b0266eb commit 90d0e36
Show file tree
Hide file tree
Showing 42 changed files with 159 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check-badges.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Check badges in README.md
run: ./scripts/check-badges.bash "README.md"
2 changes: 1 addition & 1 deletion .github/workflows/dart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: dart-lang/setup-dart@v1

- name: Install dependencies
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ To use these SDKs, you will need Client Id and Client Secret which can be looked

## Prerequisites

To use Aspose.BarCode Cloud SDK for Dart you need to register an account with [Aspose Cloud](https://www.aspose.cloud) and lookup/create Client Secret and SID at [Cloud Dashboard](https://dashboard.aspose.cloud/applications). There is a free quota available. For more details, see [Aspose Cloud Pricing](https://purchase.aspose.cloud/pricing).
To use Aspose.BarCode Cloud SDK for Dart you need to register an account with [Aspose Cloud](https://www.aspose.cloud) and lookup/create Client Secret and SID at [Cloud Dashboard](https://dashboard.aspose.cloud/applications). There is a free quota available. For more details, see [Aspose Cloud Pricing](https://purchase.aspose.cloud/).

## Requirements

Expand Down
4 changes: 4 additions & 0 deletions lib/src/model/auto_size_mode.dart
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,8 @@ class AutoSizeMode {
String toString() {
return value == null ? "null" : value.toString();
}

static List<AutoSizeMode> listFromJson(List<dynamic> json) {
return json.map((value) => AutoSizeMode.fromJson(value)).toList();
}
}
4 changes: 4 additions & 0 deletions lib/src/model/available_graphics_unit.dart
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,8 @@ class AvailableGraphicsUnit {
String toString() {
return value == null ? "null" : value.toString();
}

static List<AvailableGraphicsUnit> listFromJson(List<dynamic> json) {
return json.map((value) => AvailableGraphicsUnit.fromJson(value)).toList();
}
}
4 changes: 4 additions & 0 deletions lib/src/model/aztec_encode_mode.dart
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,8 @@ class AztecEncodeMode {
String toString() {
return value == null ? "null" : value.toString();
}

static List<AztecEncodeMode> listFromJson(List<dynamic> json) {
return json.map((value) => AztecEncodeMode.fromJson(value)).toList();
}
}
4 changes: 4 additions & 0 deletions lib/src/model/aztec_symbol_mode.dart
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,8 @@ class AztecSymbolMode {
String toString() {
return value == null ? "null" : value.toString();
}

static List<AztecSymbolMode> listFromJson(List<dynamic> json) {
return json.map((value) => AztecSymbolMode.fromJson(value)).toList();
}
}
4 changes: 4 additions & 0 deletions lib/src/model/border_dash_style.dart
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,8 @@ class BorderDashStyle {
String toString() {
return value == null ? "null" : value.toString();
}

static List<BorderDashStyle> listFromJson(List<dynamic> json) {
return json.map((value) => BorderDashStyle.fromJson(value)).toList();
}
}
4 changes: 4 additions & 0 deletions lib/src/model/checksum_validation.dart
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,8 @@ class ChecksumValidation {
String toString() {
return value == null ? "null" : value.toString();
}

static List<ChecksumValidation> listFromJson(List<dynamic> json) {
return json.map((value) => ChecksumValidation.fromJson(value)).toList();
}
}
4 changes: 4 additions & 0 deletions lib/src/model/codabar_checksum_mode.dart
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,8 @@ class CodabarChecksumMode {
String toString() {
return value == null ? "null" : value.toString();
}

static List<CodabarChecksumMode> listFromJson(List<dynamic> json) {
return json.map((value) => CodabarChecksumMode.fromJson(value)).toList();
}
}
4 changes: 4 additions & 0 deletions lib/src/model/codabar_symbol.dart
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,8 @@ class CodabarSymbol {
String toString() {
return value == null ? "null" : value.toString();
}

static List<CodabarSymbol> listFromJson(List<dynamic> json) {
return json.map((value) => CodabarSymbol.fromJson(value)).toList();
}
}
4 changes: 4 additions & 0 deletions lib/src/model/code128_emulation.dart
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,8 @@ class Code128Emulation {
String toString() {
return value == null ? "null" : value.toString();
}

static List<Code128Emulation> listFromJson(List<dynamic> json) {
return json.map((value) => Code128Emulation.fromJson(value)).toList();
}
}
4 changes: 4 additions & 0 deletions lib/src/model/code128_encode_mode.dart
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,8 @@ class Code128EncodeMode {
String toString() {
return value == null ? "null" : value.toString();
}

static List<Code128EncodeMode> listFromJson(List<dynamic> json) {
return json.map((value) => Code128EncodeMode.fromJson(value)).toList();
}
}
4 changes: 4 additions & 0 deletions lib/src/model/code_location.dart
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,8 @@ class CodeLocation {
String toString() {
return value == null ? "null" : value.toString();
}

static List<CodeLocation> listFromJson(List<dynamic> json) {
return json.map((value) => CodeLocation.fromJson(value)).toList();
}
}
7 changes: 7 additions & 0 deletions lib/src/model/customer_information_interpreting_type.dart
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,11 @@ class CustomerInformationInterpretingType {
String toString() {
return value == null ? "null" : value.toString();
}

static List<CustomerInformationInterpretingType> listFromJson(
List<dynamic> json) {
return json
.map((value) => CustomerInformationInterpretingType.fromJson(value))
.toList();
}
}
4 changes: 4 additions & 0 deletions lib/src/model/data_matrix_ecc_type.dart
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,8 @@ class DataMatrixEccType {
String toString() {
return value == null ? "null" : value.toString();
}

static List<DataMatrixEccType> listFromJson(List<dynamic> json) {
return json.map((value) => DataMatrixEccType.fromJson(value)).toList();
}
}
4 changes: 4 additions & 0 deletions lib/src/model/data_matrix_encode_mode.dart
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,8 @@ class DataMatrixEncodeMode {
String toString() {
return value == null ? "null" : value.toString();
}

static List<DataMatrixEncodeMode> listFromJson(List<dynamic> json) {
return json.map((value) => DataMatrixEncodeMode.fromJson(value)).toList();
}
}
4 changes: 4 additions & 0 deletions lib/src/model/data_matrix_version.dart
Original file line number Diff line number Diff line change
Expand Up @@ -514,4 +514,8 @@ class DataMatrixVersion {
String toString() {
return value == null ? "null" : value.toString();
}

static List<DataMatrixVersion> listFromJson(List<dynamic> json) {
return json.map((value) => DataMatrixVersion.fromJson(value)).toList();
}
}
4 changes: 4 additions & 0 deletions lib/src/model/dot_code_encode_mode.dart
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,8 @@ class DotCodeEncodeMode {
String toString() {
return value == null ? "null" : value.toString();
}

static List<DotCodeEncodeMode> listFromJson(List<dynamic> json) {
return json.map((value) => DotCodeEncodeMode.fromJson(value)).toList();
}
}
4 changes: 4 additions & 0 deletions lib/src/model/eci_encodings.dart
Original file line number Diff line number Diff line change
Expand Up @@ -184,4 +184,8 @@ class ECIEncodings {
String toString() {
return value == null ? "null" : value.toString();
}

static List<ECIEncodings> listFromJson(List<dynamic> json) {
return json.map((value) => ECIEncodings.fromJson(value)).toList();
}
}
4 changes: 4 additions & 0 deletions lib/src/model/enable_checksum.dart
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,8 @@ class EnableChecksum {
String toString() {
return value == null ? "null" : value.toString();
}

static List<EnableChecksum> listFromJson(List<dynamic> json) {
return json.map((value) => EnableChecksum.fromJson(value)).toList();
}
}
4 changes: 4 additions & 0 deletions lib/src/model/encode_barcode_type.dart
Original file line number Diff line number Diff line change
Expand Up @@ -490,4 +490,8 @@ class EncodeBarcodeType {
String toString() {
return value == null ? "null" : value.toString();
}

static List<EncodeBarcodeType> listFromJson(List<dynamic> json) {
return json.map((value) => EncodeBarcodeType.fromJson(value)).toList();
}
}
4 changes: 4 additions & 0 deletions lib/src/model/font_mode.dart
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,8 @@ class FontMode {
String toString() {
return value == null ? "null" : value.toString();
}

static List<FontMode> listFromJson(List<dynamic> json) {
return json.map((value) => FontMode.fromJson(value)).toList();
}
}
4 changes: 4 additions & 0 deletions lib/src/model/font_style.dart
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,8 @@ class FontStyle {
String toString() {
return value == null ? "null" : value.toString();
}

static List<FontStyle> listFromJson(List<dynamic> json) {
return json.map((value) => FontStyle.fromJson(value)).toList();
}
}
4 changes: 4 additions & 0 deletions lib/src/model/han_xin_encode_mode.dart
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,8 @@ class HanXinEncodeMode {
String toString() {
return value == null ? "null" : value.toString();
}

static List<HanXinEncodeMode> listFromJson(List<dynamic> json) {
return json.map((value) => HanXinEncodeMode.fromJson(value)).toList();
}
}
4 changes: 4 additions & 0 deletions lib/src/model/han_xin_error_level.dart
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,8 @@ class HanXinErrorLevel {
String toString() {
return value == null ? "null" : value.toString();
}

static List<HanXinErrorLevel> listFromJson(List<dynamic> json) {
return json.map((value) => HanXinErrorLevel.fromJson(value)).toList();
}
}
4 changes: 4 additions & 0 deletions lib/src/model/han_xin_version.dart
Original file line number Diff line number Diff line change
Expand Up @@ -532,4 +532,8 @@ class HanXinVersion {
String toString() {
return value == null ? "null" : value.toString();
}

static List<HanXinVersion> listFromJson(List<dynamic> json) {
return json.map((value) => HanXinVersion.fromJson(value)).toList();
}
}
4 changes: 4 additions & 0 deletions lib/src/model/itf14_border_type.dart
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,8 @@ class ITF14BorderType {
String toString() {
return value == null ? "null" : value.toString();
}

static List<ITF14BorderType> listFromJson(List<dynamic> json) {
return json.map((value) => ITF14BorderType.fromJson(value)).toList();
}
}
4 changes: 4 additions & 0 deletions lib/src/model/macro_character.dart
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,8 @@ class MacroCharacter {
String toString() {
return value == null ? "null" : value.toString();
}

static List<MacroCharacter> listFromJson(List<dynamic> json) {
return json.map((value) => MacroCharacter.fromJson(value)).toList();
}
}
4 changes: 4 additions & 0 deletions lib/src/model/maxi_code_encode_mode.dart
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,8 @@ class MaxiCodeEncodeMode {
String toString() {
return value == null ? "null" : value.toString();
}

static List<MaxiCodeEncodeMode> listFromJson(List<dynamic> json) {
return json.map((value) => MaxiCodeEncodeMode.fromJson(value)).toList();
}
}
4 changes: 4 additions & 0 deletions lib/src/model/maxi_code_mode.dart
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,8 @@ class MaxiCodeMode {
String toString() {
return value == null ? "null" : value.toString();
}

static List<MaxiCodeMode> listFromJson(List<dynamic> json) {
return json.map((value) => MaxiCodeMode.fromJson(value)).toList();
}
}
4 changes: 4 additions & 0 deletions lib/src/model/patch_format.dart
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,8 @@ class PatchFormat {
String toString() {
return value == null ? "null" : value.toString();
}

static List<PatchFormat> listFromJson(List<dynamic> json) {
return json.map((value) => PatchFormat.fromJson(value)).toList();
}
}
4 changes: 4 additions & 0 deletions lib/src/model/pdf417_compaction_mode.dart
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,8 @@ class Pdf417CompactionMode {
String toString() {
return value == null ? "null" : value.toString();
}

static List<Pdf417CompactionMode> listFromJson(List<dynamic> json) {
return json.map((value) => Pdf417CompactionMode.fromJson(value)).toList();
}
}
4 changes: 4 additions & 0 deletions lib/src/model/pdf417_error_level.dart
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,8 @@ class Pdf417ErrorLevel {
String toString() {
return value == null ? "null" : value.toString();
}

static List<Pdf417ErrorLevel> listFromJson(List<dynamic> json) {
return json.map((value) => Pdf417ErrorLevel.fromJson(value)).toList();
}
}
4 changes: 4 additions & 0 deletions lib/src/model/pdf417_macro_terminator.dart
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,8 @@ class Pdf417MacroTerminator {
String toString() {
return value == null ? "null" : value.toString();
}

static List<Pdf417MacroTerminator> listFromJson(List<dynamic> json) {
return json.map((value) => Pdf417MacroTerminator.fromJson(value)).toList();
}
}
4 changes: 4 additions & 0 deletions lib/src/model/preset_type.dart
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,8 @@ class PresetType {
String toString() {
return value == null ? "null" : value.toString();
}

static List<PresetType> listFromJson(List<dynamic> json) {
return json.map((value) => PresetType.fromJson(value)).toList();
}
}
4 changes: 4 additions & 0 deletions lib/src/model/qr_encode_mode.dart
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,8 @@ class QREncodeMode {
String toString() {
return value == null ? "null" : value.toString();
}

static List<QREncodeMode> listFromJson(List<dynamic> json) {
return json.map((value) => QREncodeMode.fromJson(value)).toList();
}
}
4 changes: 4 additions & 0 deletions lib/src/model/qr_encode_type.dart
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,8 @@ class QREncodeType {
String toString() {
return value == null ? "null" : value.toString();
}

static List<QREncodeType> listFromJson(List<dynamic> json) {
return json.map((value) => QREncodeType.fromJson(value)).toList();
}
}
4 changes: 4 additions & 0 deletions lib/src/model/qr_error_level.dart
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,8 @@ class QRErrorLevel {
String toString() {
return value == null ? "null" : value.toString();
}

static List<QRErrorLevel> listFromJson(List<dynamic> json) {
return json.map((value) => QRErrorLevel.fromJson(value)).toList();
}
}
4 changes: 4 additions & 0 deletions lib/src/model/qr_version.dart
Original file line number Diff line number Diff line change
Expand Up @@ -292,4 +292,8 @@ class QRVersion {
String toString() {
return value == null ? "null" : value.toString();
}

static List<QRVersion> listFromJson(List<dynamic> json) {
return json.map((value) => QRVersion.fromJson(value)).toList();
}
}
4 changes: 4 additions & 0 deletions lib/src/model/text_alignment.dart
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,8 @@ class TextAlignment {
String toString() {
return value == null ? "null" : value.toString();
}

static List<TextAlignment> listFromJson(List<dynamic> json) {
return json.map((value) => TextAlignment.fromJson(value)).toList();
}
}
1 change: 1 addition & 0 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ environment:

dependencies:
http: '>=0.13.0 <2.0.0'

dev_dependencies:
lints: ^3.0.0
test: ^1.25.1

0 comments on commit 90d0e36

Please sign in to comment.