mirror of
https://github.com/foss42/apidash.git
synced 2025-12-02 10:49:49 +08:00
Update insomnia_example.dart
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
|
||||
import 'package:insomnia_collection/insomnia_collection.dart';
|
||||
|
||||
void main() {
|
||||
@@ -150,14 +149,10 @@ void main() {
|
||||
}
|
||||
''';
|
||||
|
||||
|
||||
|
||||
var collection;
|
||||
try {
|
||||
collection = insomniaCollectionFromJsonStr(collectionJsonStr);
|
||||
|
||||
|
||||
|
||||
print(collection.exportSource);
|
||||
// insomnia.desktop.app:v10.3.0
|
||||
print(collection.resources?[3].name);
|
||||
@@ -170,7 +165,6 @@ void main() {
|
||||
print(e.toString() + 'error from collection');
|
||||
}
|
||||
|
||||
|
||||
// Example 2: Insomnia collection from JSON
|
||||
var collectionJson = {
|
||||
"_type": "export",
|
||||
|
||||
Reference in New Issue
Block a user