Latest Front with debug
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
import 'package:flutter_flow_chart/flutter_flow_chart.dart';
|
||||
import 'package:oc_front/models/abstract.dart';
|
||||
import 'package:oc_front/models/response.dart';
|
||||
import 'package:oc_front/models/search.dart';
|
||||
|
||||
class Workspace extends SerializerDeserializer<Workspace> {
|
||||
class Workspace extends SerializerDeserializer<Workspace> implements ShallowData {
|
||||
String? id;
|
||||
String? name;
|
||||
bool? active;
|
||||
@@ -24,10 +26,12 @@ class Workspace extends SerializerDeserializer<Workspace> {
|
||||
this.shared,
|
||||
});
|
||||
|
||||
@override String getID() => id ?? "";
|
||||
@override String getName() => name ?? "";
|
||||
|
||||
@override deserialize(dynamic json) {
|
||||
try { json = json as Map<String, dynamic>;
|
||||
} catch (e) { return Workspace(); }
|
||||
print(json);
|
||||
return Workspace(
|
||||
id: json.containsKey("id") ? json["id"] : null,
|
||||
shared: json["shared"],
|
||||
|
||||
Reference in New Issue
Block a user