mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-20 03:06:59 +08:00
12 lines
326 B
Dart
12 lines
326 B
Dart
import 'package:PiliPlus/models/dynamics/article_content_model.dart';
|
|
|
|
class ArticleOpus {
|
|
List<ArticleContentModel>? content;
|
|
|
|
ArticleOpus.fromJson(Map<String, dynamic> json) {
|
|
if (json['content']?['paragraphs'] case List list) {
|
|
content = list.map((i) => ArticleContentModel.fromJson(i)).toList();
|
|
}
|
|
}
|
|
}
|