1
0
mirror of https://github.com/go-vikunja/app synced 2024-06-02 18:49:47 +00:00

Merge branch 'main' into error_handler

This commit is contained in:
Benimautner 2022-10-14 17:39:41 +02:00
commit dd0d8e624d
2 changed files with 4 additions and 4 deletions

View File

@ -4,7 +4,7 @@ class Namespace {
final int id;
final DateTime created, updated;
final String title, description;
final User owner;
final User? owner;
Namespace({
this.id = 0,
@ -22,14 +22,14 @@ class Namespace {
id = json['id'],
created = DateTime.parse(json['created']),
updated = DateTime.parse(json['updated']),
owner = User.fromJson(json['owner']);
owner = json['owner'] != null ? User.fromJson(json['owner']) : null;
Map<String, dynamic> toJSON() => {
'id': id,
'created': created.toUtc().toIso8601String(),
'updated': updated.toUtc().toIso8601String(),
'title': title,
'owner': owner.toJSON(),
'owner': owner?.toJSON(),
'description': description
};

View File

@ -1,7 +1,7 @@
name: vikunja_app
description: Vikunja as Flutter cross platform app
version: 0.2.0+200099
version: 0.0.22-alpha
environment:
sdk: ">=2.12.0 <3.0.0"