tablet-app/lib/Models/section.dart
2021-02-17 22:04:09 +01:00

19 lines
460 B
Dart

class Section {
int id;
String title;
String description;
String image;
int category;
Section({this.id, this.title, this.description, this.image, this.category});
factory Section.fromJson(Map<String, dynamic> json) {
return new Section(
id: json['id'] as int,
title: json['title'] as String,
description: json['description'] as String,
image: json['image'] as String,
category: json['text'] as int
);
}
}