Files
PiliPlus/lib/models_new/reply/content.dart
bggRGjQaUbCoE 418a1e8d39 reformat
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
2025-07-23 16:47:11 +08:00

31 lines
797 B
Dart

import 'package:PiliPlus/models_new/reply/picture.dart';
class ReplyContent {
String? message;
List<dynamic>? members;
Map? jumpUrl;
int? maxLine;
List<ReplyPicture>? pictures;
double? pictureScale;
ReplyContent({
this.message,
this.members,
this.jumpUrl,
this.maxLine,
this.pictures,
this.pictureScale,
});
factory ReplyContent.fromJson(Map<String, dynamic> json) => ReplyContent(
message: json['message'] as String?,
members: json['members'] as List<dynamic>?,
jumpUrl: json['jump_url'],
maxLine: json['max_line'] as int?,
pictures: (json['pictures'] as List<dynamic>?)
?.map((e) => ReplyPicture.fromJson(e as Map<String, dynamic>))
.toList(),
pictureScale: (json['picture_scale'] as num?)?.toDouble(),
);
}