chat_history_response.dart 400 B

12345678910111213141516
  1. import 'package:json_annotation/json_annotation.dart';
  2. import '../../bean/chat_item.dart';
  3. part 'chat_history_response.g.dart';
  4. @JsonSerializable()
  5. class ChatHistoryResponse {
  6. @JsonKey(name: 'list')
  7. List<ChatItem> chatItems;
  8. ChatHistoryResponse({this.chatItems = const []});
  9. factory ChatHistoryResponse.fromJson(Map<String, dynamic> json) =>
  10. _$ChatHistoryResponseFromJson(json);
  11. }