36 lines
1.0 KiB
Dart
36 lines
1.0 KiB
Dart
class AboutModel {
|
|
final String firstImgUrl;
|
|
final String title;
|
|
final String videoUrl;
|
|
final String description;
|
|
final String secondImgUrl;
|
|
final String leftImgLabel;
|
|
final String leftImgUrl;
|
|
final String rightImgLabel;
|
|
final String rightImgUrl;
|
|
|
|
const AboutModel({
|
|
required this.firstImgUrl,
|
|
required this.title,
|
|
required this.videoUrl,
|
|
required this.description,
|
|
required this.secondImgUrl,
|
|
required this.leftImgLabel,
|
|
required this.leftImgUrl,
|
|
required this.rightImgLabel,
|
|
required this.rightImgUrl,
|
|
});
|
|
|
|
factory AboutModel.fromJson(Map<String, dynamic> json) => AboutModel(
|
|
firstImgUrl: json['main_image'],
|
|
title: json['about_us_title'],
|
|
videoUrl: json['video_url'],
|
|
description: json['description'],
|
|
secondImgUrl: json['middel_image'],
|
|
leftImgLabel: json['about_us_first_image_title'],
|
|
leftImgUrl: json['aboutus_first_image'],
|
|
rightImgLabel: json['about_us_last_image_title'],
|
|
rightImgUrl: json['aboutus_last_image'],
|
|
);
|
|
}
|