-
-
Save sbis04/a47f61c80264a529dd2fba947c7b5c1b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Future<AssetData> getAssetList() async { | |
try { | |
Response response = await _dio.get( | |
"/assets", | |
); | |
if (response.statusCode == 200) { | |
AssetData assetData = AssetData.fromJson(response.data); | |
return assetData; | |
} | |
} catch (e) { | |
print('Error starting build: $e'); | |
throw Exception('Failed to retrieve videos from MUX'); | |
} | |
return null; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment