mirror of
https://github.com/appwrite/sdk-for-flutter.git
synced 2026-04-07 19:27:41 +00:00
@@ -21,7 +21,7 @@ Add this to your package's `pubspec.yaml` file:
|
||||
|
||||
```yml
|
||||
dependencies:
|
||||
appwrite: ^8.0.0-dev.1
|
||||
appwrite: ^8.0.0-dev.2
|
||||
```
|
||||
|
||||
You can install packages from the command line:
|
||||
|
||||
@@ -43,7 +43,7 @@ class ClientBrowser extends ClientBase with ClientMixin {
|
||||
'x-sdk-name': 'Flutter',
|
||||
'x-sdk-platform': 'client',
|
||||
'x-sdk-language': 'flutter',
|
||||
'x-sdk-version': '8.0.0-dev.1',
|
||||
'x-sdk-version': '8.0.0-dev.2',
|
||||
'X-Appwrite-Response-Format' : '1.0.0-RC1',
|
||||
};
|
||||
|
||||
|
||||
@@ -64,7 +64,7 @@ class ClientIO extends ClientBase with ClientMixin {
|
||||
'x-sdk-name': 'Flutter',
|
||||
'x-sdk-platform': 'client',
|
||||
'x-sdk-language': 'flutter',
|
||||
'x-sdk-version': '8.0.0-dev.1',
|
||||
'x-sdk-version': '8.0.0-dev.2',
|
||||
'X-Appwrite-Response-Format' : '1.0.0-RC1',
|
||||
};
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ class ContinentList implements Model {
|
||||
Map<String, dynamic> toMap() {
|
||||
return {
|
||||
"total": total,
|
||||
"continents": continents.map((p) => p.toMap()),
|
||||
"continents": continents.map((p) => p.toMap()).toList(),
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -22,7 +22,7 @@ class CountryList implements Model {
|
||||
Map<String, dynamic> toMap() {
|
||||
return {
|
||||
"total": total,
|
||||
"countries": countries.map((p) => p.toMap()),
|
||||
"countries": countries.map((p) => p.toMap()).toList(),
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -22,7 +22,7 @@ class CurrencyList implements Model {
|
||||
Map<String, dynamic> toMap() {
|
||||
return {
|
||||
"total": total,
|
||||
"currencies": currencies.map((p) => p.toMap()),
|
||||
"currencies": currencies.map((p) => p.toMap()).toList(),
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -22,7 +22,7 @@ class DocumentList implements Model {
|
||||
Map<String, dynamic> toMap() {
|
||||
return {
|
||||
"total": total,
|
||||
"documents": documents.map((p) => p.toMap()),
|
||||
"documents": documents.map((p) => p.toMap()).toList(),
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ class ExecutionList implements Model {
|
||||
Map<String, dynamic> toMap() {
|
||||
return {
|
||||
"total": total,
|
||||
"executions": executions.map((p) => p.toMap()),
|
||||
"executions": executions.map((p) => p.toMap()).toList(),
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -22,7 +22,7 @@ class FileList implements Model {
|
||||
Map<String, dynamic> toMap() {
|
||||
return {
|
||||
"total": total,
|
||||
"files": files.map((p) => p.toMap()),
|
||||
"files": files.map((p) => p.toMap()).toList(),
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -22,7 +22,7 @@ class LanguageList implements Model {
|
||||
Map<String, dynamic> toMap() {
|
||||
return {
|
||||
"total": total,
|
||||
"languages": languages.map((p) => p.toMap()),
|
||||
"languages": languages.map((p) => p.toMap()).toList(),
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -22,7 +22,7 @@ class LogList implements Model {
|
||||
Map<String, dynamic> toMap() {
|
||||
return {
|
||||
"total": total,
|
||||
"logs": logs.map((p) => p.toMap()),
|
||||
"logs": logs.map((p) => p.toMap()).toList(),
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -22,7 +22,7 @@ class MembershipList implements Model {
|
||||
Map<String, dynamic> toMap() {
|
||||
return {
|
||||
"total": total,
|
||||
"memberships": memberships.map((p) => p.toMap()),
|
||||
"memberships": memberships.map((p) => p.toMap()).toList(),
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -22,7 +22,7 @@ class PhoneList implements Model {
|
||||
Map<String, dynamic> toMap() {
|
||||
return {
|
||||
"total": total,
|
||||
"phones": phones.map((p) => p.toMap()),
|
||||
"phones": phones.map((p) => p.toMap()).toList(),
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -22,7 +22,7 @@ class SessionList implements Model {
|
||||
Map<String, dynamic> toMap() {
|
||||
return {
|
||||
"total": total,
|
||||
"sessions": sessions.map((p) => p.toMap()),
|
||||
"sessions": sessions.map((p) => p.toMap()).toList(),
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -22,7 +22,7 @@ class TeamList implements Model {
|
||||
Map<String, dynamic> toMap() {
|
||||
return {
|
||||
"total": total,
|
||||
"teams": teams.map((p) => p.toMap()),
|
||||
"teams": teams.map((p) => p.toMap()).toList(),
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@ class RealtimeMessage {
|
||||
final List<String> events;
|
||||
final Map<String, dynamic> payload;
|
||||
final List<String> channels;
|
||||
final int timestamp;
|
||||
final String timestamp;
|
||||
RealtimeMessage({
|
||||
required this.events,
|
||||
required this.payload,
|
||||
@@ -17,7 +17,7 @@ class RealtimeMessage {
|
||||
List<String>? events,
|
||||
Map<String, dynamic>? payload,
|
||||
List<String>? channels,
|
||||
int? timestamp,
|
||||
String? timestamp,
|
||||
}) {
|
||||
return RealtimeMessage(
|
||||
events: events ?? this.events,
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
name: appwrite
|
||||
version: 8.0.0-dev.1
|
||||
version: 8.0.0-dev.2
|
||||
description: Appwrite is an open-source self-hosted backend server that abstract and simplify complex and repetitive development tasks behind a very simple REST API
|
||||
homepage: https://appwrite.io
|
||||
repository: https://github.com/appwrite/sdk-for-flutter
|
||||
|
||||
Reference in New Issue
Block a user