mirror of
https://bitbucket.org/FransoletThomas/tablet-app.git
synced 2025-12-06 08:31:19 +00:00
19 lines
465 B
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
|
|
);
|
|
}
|
|
} |