| 123456789101112131415161718192021222324252627282930313233 |
- import 'dart:core';
- /// @author: bo.zeng
- /// @email: cnhbwds@gmail.com
- /// @date: 2025 2025/4/15 13:16
- /// @description:
- // banner_model.dart
- class BannerItem {
- final String title;
- final String img;
- final String num;
- final String holderImg;
- final List<String> logo;
- BannerItem({
- required this.title,
- required this.img,
- required this.num,
- required this.holderImg,
- required this.logo,
- });
- factory BannerItem.fromJson(Map<String, dynamic> json) {
- return BannerItem(
- title: json['title'] ?? '',
- img: json['img'] ?? '',
- num: json['num'] ?? '',
- holderImg: json['holderImg'] ?? '',
- logo: List<String>.from(json['logo'] ?? []),
- );
- }
- }
|