mirror of
https://github.com/go-vikunja/app
synced 2024-06-03 19:19:46 +00:00
056b2d72c9
This PR formats all code with dart format and adds a step to the CI so that it will be checked on every push and PR.
21 lines
530 B
Dart
21 lines
530 B
Dart
import 'package:meta/meta.dart';
|
|
import 'package:vikunja_app/models/label.dart';
|
|
import 'package:vikunja_app/models/task.dart';
|
|
import 'package:vikunja_app/models/user.dart';
|
|
|
|
class LabelTask {
|
|
final Label label;
|
|
final Task? task;
|
|
|
|
LabelTask({required this.label, required this.task});
|
|
|
|
LabelTask.fromJson(Map<String, dynamic> json, User createdBy)
|
|
: label =
|
|
new Label(id: json['label_id'], title: '', createdBy: createdBy),
|
|
task = null;
|
|
|
|
toJSON() => {
|
|
'label_id': label.id,
|
|
};
|
|
}
|