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