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