From 31f0cbc249a7d3ab2f198a618623153a59d5b2aa Mon Sep 17 00:00:00 2001 From: Toki Date: Wed, 25 Sep 2024 19:35:35 +0900 Subject: [PATCH] udpate generate code --- lib/oto/data/command_data.g.dart | 194 ++++++++++++++++++------------- lib/oto/data/jenkins_data.g.dart | 4 +- lib/oto/data/jira_data.g.dart | 4 +- 3 files changed, 114 insertions(+), 88 deletions(-) diff --git a/lib/oto/data/command_data.g.dart b/lib/oto/data/command_data.g.dart index d0fd7ce..3585a8a 100644 --- a/lib/oto/data/command_data.g.dart +++ b/lib/oto/data/command_data.g.dart @@ -91,8 +91,9 @@ const _$CommandTypeEnumMap = { DataParam _$DataParamFromJson(Map json) => DataParam() ..workspace = json['workspace'] as String? - ..passExitCodes = - (json['passExitCodes'] as List?)?.map((e) => e as int).toList() + ..passExitCodes = (json['passExitCodes'] as List?) + ?.map((e) => (e as num).toInt()) + .toList() ..setResult = json['setResult'] as String? ..setExitCode = json['setExitCode'] as String?; @@ -107,7 +108,7 @@ DataSimpleCommand _$DataSimpleCommandFromJson(Map json) => DataSimpleCommand() ..workspace = json['workspace'] as String? ..passExitCodes = (json['passExitCodes'] as List?) - ?.map((e) => e as int) + ?.map((e) => (e as num).toInt()) .toList() ..setResult = json['setResult'] as String? ..setExitCode = json['setExitCode'] as String? @@ -124,8 +125,9 @@ Map _$DataSimpleCommandToJson(DataSimpleCommand instance) => DataPrint _$DataPrintFromJson(Map json) => DataPrint() ..workspace = json['workspace'] as String? - ..passExitCodes = - (json['passExitCodes'] as List?)?.map((e) => e as int).toList() + ..passExitCodes = (json['passExitCodes'] as List?) + ?.map((e) => (e as num).toInt()) + .toList() ..setResult = json['setResult'] as String? ..setExitCode = json['setExitCode'] as String? ..message = json['message'] as String; @@ -140,8 +142,9 @@ Map _$DataPrintToJson(DataPrint instance) => { DataSetValue _$DataSetValueFromJson(Map json) => DataSetValue() ..workspace = json['workspace'] as String? - ..passExitCodes = - (json['passExitCodes'] as List?)?.map((e) => e as int).toList() + ..passExitCodes = (json['passExitCodes'] as List?) + ?.map((e) => (e as num).toInt()) + .toList() ..setResult = json['setResult'] as String? ..setExitCode = json['setExitCode'] as String? ..values_int = json['values-int'] as Map? @@ -165,7 +168,7 @@ DataAppDataCreator _$DataAppDataCreatorFromJson(Map json) => DataAppDataCreator() ..workspace = json['workspace'] as String? ..passExitCodes = (json['passExitCodes'] as List?) - ?.map((e) => e as int) + ?.map((e) => (e as num).toInt()) .toList() ..setResult = json['setResult'] as String? ..setExitCode = json['setExitCode'] as String? @@ -201,7 +204,7 @@ DataBuildMSBuild _$DataBuildMSBuildFromJson(Map json) => DataBuildMSBuild() ..workspace = json['workspace'] as String? ..passExitCodes = (json['passExitCodes'] as List?) - ?.map((e) => e as int) + ?.map((e) => (e as num).toInt()) .toList() ..setResult = json['setResult'] as String? ..setExitCode = json['setExitCode'] as String? @@ -235,7 +238,7 @@ DataBuildDart _$DataBuildDartFromJson(Map json) => DataBuildDart() ..workspace = json['workspace'] as String? ..passExitCodes = (json['passExitCodes'] as List?) - ?.map((e) => e as int) + ?.map((e) => (e as num).toInt()) .toList() ..setResult = json['setResult'] as String? ..setExitCode = json['setExitCode'] as String? @@ -254,7 +257,7 @@ DataBuildFlutter _$DataBuildFlutterFromJson(Map json) => DataBuildFlutter() ..workspace = json['workspace'] as String? ..passExitCodes = (json['passExitCodes'] as List?) - ?.map((e) => e as int) + ?.map((e) => (e as num).toInt()) .toList() ..setResult = json['setResult'] as String? ..setExitCode = json['setExitCode'] as String? @@ -280,7 +283,7 @@ DataBuildDartCompile _$DataBuildDartCompileFromJson( DataBuildDartCompile() ..workspace = json['workspace'] as String? ..passExitCodes = (json['passExitCodes'] as List?) - ?.map((e) => e as int) + ?.map((e) => (e as num).toInt()) .toList() ..setResult = json['setResult'] as String? ..setExitCode = json['setExitCode'] as String? @@ -304,7 +307,7 @@ DataBuildDotNet _$DataBuildDotNetFromJson(Map json) => DataBuildDotNet() ..workspace = json['workspace'] as String? ..passExitCodes = (json['passExitCodes'] as List?) - ?.map((e) => e as int) + ?.map((e) => (e as num).toInt()) .toList() ..setResult = json['setResult'] as String? ..setExitCode = json['setExitCode'] as String? @@ -321,8 +324,9 @@ Map _$DataBuildDotNetToJson(DataBuildDotNet instance) => DataBuildiOS _$DataBuildiOSFromJson(Map json) => DataBuildiOS() ..workspace = json['workspace'] as String? - ..passExitCodes = - (json['passExitCodes'] as List?)?.map((e) => e as int).toList() + ..passExitCodes = (json['passExitCodes'] as List?) + ?.map((e) => (e as num).toInt()) + .toList() ..setResult = json['setResult'] as String? ..setExitCode = json['setExitCode'] as String? ..scheme = json['scheme'] as String @@ -366,8 +370,9 @@ const _$BuildPlatformEnumMap = { DataCodeSign _$DataCodeSignFromJson(Map json) => DataCodeSign() ..workspace = json['workspace'] as String? - ..passExitCodes = - (json['passExitCodes'] as List?)?.map((e) => e as int).toList() + ..passExitCodes = (json['passExitCodes'] as List?) + ?.map((e) => (e as num).toInt()) + .toList() ..setResult = json['setResult'] as String? ..setExitCode = json['setExitCode'] as String? ..appPath = json['appPath'] as String @@ -389,7 +394,7 @@ DataCodeSignVerify _$DataCodeSignVerifyFromJson(Map json) => DataCodeSignVerify() ..workspace = json['workspace'] as String? ..passExitCodes = (json['passExitCodes'] as List?) - ?.map((e) => e as int) + ?.map((e) => (e as num).toInt()) .toList() ..setResult = json['setResult'] as String? ..setExitCode = json['setExitCode'] as String? @@ -408,7 +413,7 @@ DataProductBuild _$DataProductBuildFromJson(Map json) => DataProductBuild() ..workspace = json['workspace'] as String? ..passExitCodes = (json['passExitCodes'] as List?) - ?.map((e) => e as int) + ?.map((e) => (e as num).toInt()) .toList() ..setResult = json['setResult'] as String? ..setExitCode = json['setExitCode'] as String? @@ -435,8 +440,9 @@ Map _$DataProductBuildToJson(DataProductBuild instance) => DataNotarize _$DataNotarizeFromJson(Map json) => DataNotarize() ..workspace = json['workspace'] as String? - ..passExitCodes = - (json['passExitCodes'] as List?)?.map((e) => e as int).toList() + ..passExitCodes = (json['passExitCodes'] as List?) + ?.map((e) => (e as num).toInt()) + .toList() ..setResult = json['setResult'] as String? ..setExitCode = json['setExitCode'] as String? ..macPassword = json['macPassword'] as String @@ -464,7 +470,7 @@ DataArchiveiOS _$DataArchiveiOSFromJson(Map json) => DataArchiveiOS() ..workspace = json['workspace'] as String? ..passExitCodes = (json['passExitCodes'] as List?) - ?.map((e) => e as int) + ?.map((e) => (e as num).toInt()) .toList() ..setResult = json['setResult'] as String? ..setExitCode = json['setExitCode'] as String? @@ -489,7 +495,7 @@ DataExportiOS _$DataExportiOSFromJson(Map json) => DataExportiOS() ..workspace = json['workspace'] as String? ..passExitCodes = (json['passExitCodes'] as List?) - ?.map((e) => e as int) + ?.map((e) => (e as num).toInt()) .toList() ..setResult = json['setResult'] as String? ..setExitCode = json['setExitCode'] as String? @@ -512,7 +518,7 @@ DataPublishiOS _$DataPublishiOSFromJson(Map json) => DataPublishiOS() ..workspace = json['workspace'] as String? ..passExitCodes = (json['passExitCodes'] as List?) - ?.map((e) => e as int) + ?.map((e) => (e as num).toInt()) .toList() ..setResult = json['setResult'] as String? ..setExitCode = json['setExitCode'] as String? @@ -543,12 +549,13 @@ Map _$DataPublishiOSToJson(DataPublishiOS instance) => DataUploader _$DataUploaderFromJson(Map json) => DataUploader() ..workspace = json['workspace'] as String? - ..passExitCodes = - (json['passExitCodes'] as List?)?.map((e) => e as int).toList() + ..passExitCodes = (json['passExitCodes'] as List?) + ?.map((e) => (e as num).toInt()) + .toList() ..setResult = json['setResult'] as String? ..setExitCode = json['setExitCode'] as String? ..sftp = json['sftp'] as bool - ..port = json['port'] as int + ..port = (json['port'] as num).toInt() ..host = json['host'] as String ..user = json['user'] as String ..password = json['password'] as String @@ -570,8 +577,9 @@ Map _$DataUploaderToJson(DataUploader instance) => DataCopy _$DataCopyFromJson(Map json) => DataCopy() ..workspace = json['workspace'] as String? - ..passExitCodes = - (json['passExitCodes'] as List?)?.map((e) => e as int).toList() + ..passExitCodes = (json['passExitCodes'] as List?) + ?.map((e) => (e as num).toInt()) + .toList() ..setResult = json['setResult'] as String? ..setExitCode = json['setExitCode'] as String? ..ignorePattern = (json['ignorePattern'] as List?) @@ -594,8 +602,9 @@ Map _$DataCopyToJson(DataCopy instance) => { DataDelete _$DataDeleteFromJson(Map json) => DataDelete() ..workspace = json['workspace'] as String? - ..passExitCodes = - (json['passExitCodes'] as List?)?.map((e) => e as int).toList() + ..passExitCodes = (json['passExitCodes'] as List?) + ?.map((e) => (e as num).toInt()) + .toList() ..setResult = json['setResult'] as String? ..setExitCode = json['setExitCode'] as String? ..ignorePattern = (json['ignorePattern'] as List?) @@ -615,8 +624,9 @@ Map _$DataDeleteToJson(DataDelete instance) => DataRename _$DataRenameFromJson(Map json) => DataRename() ..workspace = json['workspace'] as String? - ..passExitCodes = - (json['passExitCodes'] as List?)?.map((e) => e as int).toList() + ..passExitCodes = (json['passExitCodes'] as List?) + ?.map((e) => (e as num).toInt()) + .toList() ..setResult = json['setResult'] as String? ..setExitCode = json['setExitCode'] as String? ..ignorePattern = (json['ignorePattern'] as List?) @@ -638,7 +648,7 @@ DataFileDiffCheck _$DataFileDiffCheckFromJson(Map json) => DataFileDiffCheck() ..workspace = json['workspace'] as String? ..passExitCodes = (json['passExitCodes'] as List?) - ?.map((e) => e as int) + ?.map((e) => (e as num).toInt()) .toList() ..setResult = json['setResult'] as String? ..setExitCode = json['setExitCode'] as String? @@ -658,8 +668,9 @@ Map _$DataFileDiffCheckToJson(DataFileDiffCheck instance) => DataFileRead _$DataFileReadFromJson(Map json) => DataFileRead() ..workspace = json['workspace'] as String? - ..passExitCodes = - (json['passExitCodes'] as List?)?.map((e) => e as int).toList() + ..passExitCodes = (json['passExitCodes'] as List?) + ?.map((e) => (e as num).toInt()) + .toList() ..setResult = json['setResult'] as String? ..setExitCode = json['setExitCode'] as String? ..path = json['path'] as String @@ -679,7 +690,7 @@ DataFileWrite _$DataFileWriteFromJson(Map json) => DataFileWrite() ..workspace = json['workspace'] as String? ..passExitCodes = (json['passExitCodes'] as List?) - ?.map((e) => e as int) + ?.map((e) => (e as num).toInt()) .toList() ..setResult = json['setResult'] as String? ..setExitCode = json['setExitCode'] as String? @@ -700,7 +711,7 @@ DataDirectoryCreate _$DataDirectoryCreateFromJson(Map json) => DataDirectoryCreate() ..workspace = json['workspace'] as String? ..passExitCodes = (json['passExitCodes'] as List?) - ?.map((e) => e as int) + ?.map((e) => (e as num).toInt()) .toList() ..setResult = json['setResult'] as String? ..setExitCode = json['setExitCode'] as String? @@ -720,7 +731,7 @@ DataSlackSender _$DataSlackSenderFromJson(Map json) => DataSlackSender() ..workspace = json['workspace'] as String? ..passExitCodes = (json['passExitCodes'] as List?) - ?.map((e) => e as int) + ?.map((e) => (e as num).toInt()) .toList() ..setResult = json['setResult'] as String? ..setExitCode = json['setExitCode'] as String? @@ -743,7 +754,7 @@ DataSlackBuild _$DataSlackBuildFromJson(Map json) => DataSlackBuild() ..workspace = json['workspace'] as String? ..passExitCodes = (json['passExitCodes'] as List?) - ?.map((e) => e as int) + ?.map((e) => (e as num).toInt()) .toList() ..setResult = json['setResult'] as String? ..setExitCode = json['setExitCode'] as String? @@ -782,8 +793,9 @@ const _$SlackBuildTypeEnumMap = { DataJira _$DataJiraFromJson(Map json) => DataJira() ..workspace = json['workspace'] as String? - ..passExitCodes = - (json['passExitCodes'] as List?)?.map((e) => e as int).toList() + ..passExitCodes = (json['passExitCodes'] as List?) + ?.map((e) => (e as num).toInt()) + .toList() ..setResult = json['setResult'] as String? ..setExitCode = json['setExitCode'] as String? ..id = json['id'] as String @@ -814,8 +826,9 @@ Map _$DataJiraToJson(DataJira instance) => { DataJiraUser _$DataJiraUserFromJson(Map json) => DataJiraUser() ..workspace = json['workspace'] as String? - ..passExitCodes = - (json['passExitCodes'] as List?)?.map((e) => e as int).toList() + ..passExitCodes = (json['passExitCodes'] as List?) + ?.map((e) => (e as num).toInt()) + .toList() ..setResult = json['setResult'] as String? ..setExitCode = json['setExitCode'] as String? ..mail = json['mail'] as String? @@ -833,8 +846,9 @@ Map _$DataJiraUserToJson(DataJiraUser instance) => DataZip _$DataZipFromJson(Map json) => DataZip() ..workspace = json['workspace'] as String? - ..passExitCodes = - (json['passExitCodes'] as List?)?.map((e) => e as int).toList() + ..passExitCodes = (json['passExitCodes'] as List?) + ?.map((e) => (e as num).toInt()) + .toList() ..setResult = json['setResult'] as String? ..setExitCode = json['setExitCode'] as String? ..zipFile = json['zipFile'] as String @@ -852,8 +866,9 @@ Map _$DataZipToJson(DataZip instance) => { DataShell _$DataShellFromJson(Map json) => DataShell() ..workspace = json['workspace'] as String? - ..passExitCodes = - (json['passExitCodes'] as List?)?.map((e) => e as int).toList() + ..passExitCodes = (json['passExitCodes'] as List?) + ?.map((e) => (e as num).toInt()) + .toList() ..setResult = json['setResult'] as String? ..setExitCode = json['setExitCode'] as String? ..commands = @@ -871,7 +886,7 @@ DataShellFile _$DataShellFileFromJson(Map json) => DataShellFile() ..workspace = json['workspace'] as String? ..passExitCodes = (json['passExitCodes'] as List?) - ?.map((e) => e as int) + ?.map((e) => (e as num).toInt()) .toList() ..setResult = json['setResult'] as String? ..setExitCode = json['setExitCode'] as String? @@ -888,8 +903,9 @@ Map _$DataShellFileToJson(DataShellFile instance) => DataGit _$DataGitFromJson(Map json) => DataGit() ..workspace = json['workspace'] as String? - ..passExitCodes = - (json['passExitCodes'] as List?)?.map((e) => e as int).toList() + ..passExitCodes = (json['passExitCodes'] as List?) + ?.map((e) => (e as num).toInt()) + .toList() ..setResult = json['setResult'] as String? ..setExitCode = json['setExitCode'] as String? ..commands = @@ -905,8 +921,9 @@ Map _$DataGitToJson(DataGit instance) => { DataGitPush _$DataGitPushFromJson(Map json) => DataGitPush() ..workspace = json['workspace'] as String? - ..passExitCodes = - (json['passExitCodes'] as List?)?.map((e) => e as int).toList() + ..passExitCodes = (json['passExitCodes'] as List?) + ?.map((e) => (e as num).toInt()) + .toList() ..setResult = json['setResult'] as String? ..setExitCode = json['setExitCode'] as String? ..branch = json['branch'] as String?; @@ -924,7 +941,7 @@ DataGitCheckout _$DataGitCheckoutFromJson(Map json) => DataGitCheckout() ..workspace = json['workspace'] as String? ..passExitCodes = (json['passExitCodes'] as List?) - ?.map((e) => e as int) + ?.map((e) => (e as num).toInt()) .toList() ..setResult = json['setResult'] as String? ..setExitCode = json['setExitCode'] as String? @@ -943,8 +960,9 @@ Map _$DataGitCheckoutToJson(DataGitCheckout instance) => DataGitCount _$DataGitCountFromJson(Map json) => DataGitCount() ..workspace = json['workspace'] as String? - ..passExitCodes = - (json['passExitCodes'] as List?)?.map((e) => e as int).toList() + ..passExitCodes = (json['passExitCodes'] as List?) + ?.map((e) => (e as num).toInt()) + .toList() ..setResult = json['setResult'] as String? ..setExitCode = json['setExitCode'] as String? ..setValue = json['setValue'] as String; @@ -960,8 +978,9 @@ Map _$DataGitCountToJson(DataGitCount instance) => DataGitRev _$DataGitRevFromJson(Map json) => DataGitRev() ..workspace = json['workspace'] as String? - ..passExitCodes = - (json['passExitCodes'] as List?)?.map((e) => e as int).toList() + ..passExitCodes = (json['passExitCodes'] as List?) + ?.map((e) => (e as num).toInt()) + .toList() ..setResult = json['setResult'] as String? ..setExitCode = json['setExitCode'] as String? ..branch = json['branch'] as String? @@ -979,8 +998,9 @@ Map _$DataGitRevToJson(DataGitRev instance) => DataGitHub _$DataGitHubFromJson(Map json) => DataGitHub() ..workspace = json['workspace'] as String? - ..passExitCodes = - (json['passExitCodes'] as List?)?.map((e) => e as int).toList() + ..passExitCodes = (json['passExitCodes'] as List?) + ?.map((e) => (e as num).toInt()) + .toList() ..setResult = json['setResult'] as String? ..setExitCode = json['setExitCode'] as String? ..commands = @@ -1000,7 +1020,7 @@ DataGitHubPullRequestCreate _$DataGitHubPullRequestCreateFromJson( DataGitHubPullRequestCreate() ..workspace = json['workspace'] as String? ..passExitCodes = (json['passExitCodes'] as List?) - ?.map((e) => e as int) + ?.map((e) => (e as num).toInt()) .toList() ..setResult = json['setResult'] as String? ..setExitCode = json['setExitCode'] as String? @@ -1029,7 +1049,7 @@ DataGitHubPullRequestList _$DataGitHubPullRequestListFromJson( DataGitHubPullRequestList() ..workspace = json['workspace'] as String? ..passExitCodes = (json['passExitCodes'] as List?) - ?.map((e) => e as int) + ?.map((e) => (e as num).toInt()) .toList() ..setResult = json['setResult'] as String? ..setExitCode = json['setExitCode'] as String? @@ -1056,7 +1076,7 @@ DataGitHubPullRequestClose _$DataGitHubPullRequestCloseFromJson( DataGitHubPullRequestClose() ..workspace = json['workspace'] as String? ..passExitCodes = (json['passExitCodes'] as List?) - ?.map((e) => e as int) + ?.map((e) => (e as num).toInt()) .toList() ..setResult = json['setResult'] as String? ..setExitCode = json['setExitCode'] as String? @@ -1074,8 +1094,9 @@ Map _$DataGitHubPullRequestCloseToJson( DataProtobuf _$DataProtobufFromJson(Map json) => DataProtobuf() ..workspace = json['workspace'] as String? - ..passExitCodes = - (json['passExitCodes'] as List?)?.map((e) => e as int).toList() + ..passExitCodes = (json['passExitCodes'] as List?) + ?.map((e) => (e as num).toInt()) + .toList() ..setResult = json['setResult'] as String? ..setExitCode = json['setExitCode'] as String? ..commands = @@ -1094,7 +1115,7 @@ DataJsonReader _$DataJsonReaderFromJson(Map json) => DataJsonReader() ..workspace = json['workspace'] as String? ..passExitCodes = (json['passExitCodes'] as List?) - ?.map((e) => e as int) + ?.map((e) => (e as num).toInt()) .toList() ..setResult = json['setResult'] as String? ..setExitCode = json['setExitCode'] as String? @@ -1117,7 +1138,7 @@ DataJsonReaderFile _$DataJsonReaderFileFromJson(Map json) => DataJsonReaderFile() ..workspace = json['workspace'] as String? ..passExitCodes = (json['passExitCodes'] as List?) - ?.map((e) => e as int) + ?.map((e) => (e as num).toInt()) .toList() ..setResult = json['setResult'] as String? ..setExitCode = json['setExitCode'] as String? @@ -1158,8 +1179,9 @@ Map _$DataPairToJson(DataPair instance) => { DataAwsCli _$DataAwsCliFromJson(Map json) => DataAwsCli() ..workspace = json['workspace'] as String? - ..passExitCodes = - (json['passExitCodes'] as List?)?.map((e) => e as int).toList() + ..passExitCodes = (json['passExitCodes'] as List?) + ?.map((e) => (e as num).toInt()) + .toList() ..setResult = json['setResult'] as String? ..setExitCode = json['setExitCode'] as String? ..subCommand = json['sub-command'] as String @@ -1177,8 +1199,9 @@ Map _$DataAwsCliToJson(DataAwsCli instance) => DataDocker _$DataDockerFromJson(Map json) => DataDocker() ..workspace = json['workspace'] as String? - ..passExitCodes = - (json['passExitCodes'] as List?)?.map((e) => e as int).toList() + ..passExitCodes = (json['passExitCodes'] as List?) + ?.map((e) => (e as num).toInt()) + .toList() ..setResult = json['setResult'] as String? ..setExitCode = json['setExitCode'] as String? ..command = json['command'] as String @@ -1196,8 +1219,9 @@ Map _$DataDockerToJson(DataDocker instance) => DataGradle _$DataGradleFromJson(Map json) => DataGradle() ..workspace = json['workspace'] as String? - ..passExitCodes = - (json['passExitCodes'] as List?)?.map((e) => e as int).toList() + ..passExitCodes = (json['passExitCodes'] as List?) + ?.map((e) => (e as num).toInt()) + .toList() ..setResult = json['setResult'] as String? ..setExitCode = json['setExitCode'] as String? ..args = (json['args'] as List).map((e) => e as String).toList(); @@ -1215,12 +1239,12 @@ DataStringSub _$DataStringSubFromJson(Map json) => DataStringSub() ..workspace = json['workspace'] as String? ..passExitCodes = (json['passExitCodes'] as List?) - ?.map((e) => e as int) + ?.map((e) => (e as num).toInt()) .toList() ..setResult = json['setResult'] as String? ..setExitCode = json['setExitCode'] as String? - ..startIndex = json['startIndex'] as int? - ..lastIndex = json['lastIndex'] as int? + ..startIndex = (json['startIndex'] as num?)?.toInt() + ..lastIndex = (json['lastIndex'] as num?)?.toInt() ..text = json['text'] as String ..setValue = json['setValue'] as String; @@ -1240,7 +1264,7 @@ DataStringReplace _$DataStringReplaceFromJson(Map json) => DataStringReplace() ..workspace = json['workspace'] as String? ..passExitCodes = (json['passExitCodes'] as List?) - ?.map((e) => e as int) + ?.map((e) => (e as num).toInt()) .toList() ..setResult = json['setResult'] as String? ..setExitCode = json['setExitCode'] as String? @@ -1263,8 +1287,9 @@ Map _$DataStringReplaceToJson(DataStringReplace instance) => DataWebBase _$DataWebBaseFromJson(Map json) => DataWebBase() ..workspace = json['workspace'] as String? - ..passExitCodes = - (json['passExitCodes'] as List?)?.map((e) => e as int).toList() + ..passExitCodes = (json['passExitCodes'] as List?) + ?.map((e) => (e as num).toInt()) + .toList() ..setResult = json['setResult'] as String? ..setExitCode = json['setExitCode'] as String? ..url = json['url'] as String @@ -1292,8 +1317,9 @@ Map _$DataWebBaseToJson(DataWebBase instance) => DataWebFile _$DataWebFileFromJson(Map json) => DataWebFile() ..workspace = json['workspace'] as String? - ..passExitCodes = - (json['passExitCodes'] as List?)?.map((e) => e as int).toList() + ..passExitCodes = (json['passExitCodes'] as List?) + ?.map((e) => (e as num).toInt()) + .toList() ..setResult = json['setResult'] as String? ..setExitCode = json['setExitCode'] as String? ..url = json['url'] as String @@ -1329,7 +1355,7 @@ DataProcessPortUse _$DataProcessPortUseFromJson(Map json) => DataProcessPortUse() ..workspace = json['workspace'] as String? ..passExitCodes = (json['passExitCodes'] as List?) - ?.map((e) => e as int) + ?.map((e) => (e as num).toInt()) .toList() ..setResult = json['setResult'] as String? ..setExitCode = json['setExitCode'] as String? @@ -1350,7 +1376,7 @@ DataProcessRun _$DataProcessRunFromJson(Map json) => DataProcessRun() ..workspace = json['workspace'] as String? ..passExitCodes = (json['passExitCodes'] as List?) - ?.map((e) => e as int) + ?.map((e) => (e as num).toInt()) .toList() ..setResult = json['setResult'] as String? ..setExitCode = json['setExitCode'] as String? @@ -1371,7 +1397,7 @@ DataProcessKill _$DataProcessKillFromJson(Map json) => DataProcessKill() ..workspace = json['workspace'] as String? ..passExitCodes = (json['passExitCodes'] as List?) - ?.map((e) => e as int) + ?.map((e) => (e as num).toInt()) .toList() ..setResult = json['setResult'] as String? ..setExitCode = json['setExitCode'] as String? diff --git a/lib/oto/data/jenkins_data.g.dart b/lib/oto/data/jenkins_data.g.dart index 921400c..6d390dc 100644 --- a/lib/oto/data/jenkins_data.g.dart +++ b/lib/oto/data/jenkins_data.g.dart @@ -14,8 +14,8 @@ DataCommon _$DataCommonFromJson(Map json) => DataCommon() ..jobUrl = json['jobUrl'] as String ..jobName = json['jobName'] as String ..gitCommit = json['gitCommit'] as String - ..buildNumber = json['buildNumber'] as int - ..buildID = json['buildID'] as int + ..buildNumber = (json['buildNumber'] as num).toInt() + ..buildID = (json['buildID'] as num).toInt() ..buildDisplayName = json['buildDisplayName'] as String ..gitBranch = json['gitBranch'] as String ..buildTag = json['buildTag'] as String; diff --git a/lib/oto/data/jira_data.g.dart b/lib/oto/data/jira_data.g.dart index 1ff06fd..d30682c 100644 --- a/lib/oto/data/jira_data.g.dart +++ b/lib/oto/data/jira_data.g.dart @@ -102,7 +102,7 @@ DataJiraIssueStatusCategory _$DataJiraIssueStatusCategoryFromJson( Map json) => DataJiraIssueStatusCategory() ..self = json['self'] as String? - ..id = json['id'] as int? + ..id = (json['id'] as num?)?.toInt() ..key = json['key'] as String? ..colorName = json['colorName'] as String? ..name = json['name'] as String?; @@ -141,7 +141,7 @@ Map _$DataJiraUserToJson(DataJiraUser instance) => DataJiraIssueDesc _$DataJiraIssueDescFromJson(Map json) => DataJiraIssueDesc() - ..version = json['version'] as int? + ..version = (json['version'] as num?)?.toInt() ..doc = json['doc'] as String? ..content = (json['content'] as List?) ?.map((e) => DataJiraContent.fromJson(e as Map))