tablet-app/lib/Models/section.dart

19 lines
465 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
);
}
}