mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-25 03:26:22 +08:00
30
lib/models_new/reply/content.dart
Normal file
30
lib/models_new/reply/content.dart
Normal file
@@ -0,0 +1,30 @@
|
||||
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(),
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user