mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-20 17:16:29 +08:00
18 lines
486 B
Dart
18 lines
486 B
Dart
import 'package:PiliPlus/models_new/pgc/pgc_timeline/result.dart';
|
|
|
|
class PgcTimeline {
|
|
int? code;
|
|
String? message;
|
|
List<Result>? result;
|
|
|
|
PgcTimeline({this.code, this.message, this.result});
|
|
|
|
factory PgcTimeline.fromJson(Map<String, dynamic> json) => PgcTimeline(
|
|
code: json['code'] as int?,
|
|
message: json['message'] as String?,
|
|
result: (json['result'] as List<dynamic>?)
|
|
?.map((e) => Result.fromJson(e as Map<String, dynamic>))
|
|
.toList(),
|
|
);
|
|
}
|