Line data Source code
1 : 2 : import 'package:equatable/equatable.dart'; 3 : import 'package:json_annotation/json_annotation.dart'; 4 : 5 : 6 : part 'chatwoot_new_message_request.g.dart'; 7 : 8 : @JsonSerializable(explicitToJson: true) 9 : class ChatwootNewMessageRequest extends Equatable{ 10 : 11 : @JsonKey() 12 : final String content; 13 : @JsonKey(name: "echo_id") 14 : final String echoId; 15 : 16 3 : ChatwootNewMessageRequest({ 17 : required this.content, 18 : required this.echoId 19 : }); 20 : 21 : 22 0 : @override 23 0 : List<Object> get props => [ 24 0 : content, 25 0 : echoId 26 : ]; 27 : 28 : 29 0 : factory ChatwootNewMessageRequest.fromJson(Map<String, dynamic> json) => _$ChatwootNewMessageRequestFromJson(json); 30 : 31 2 : Map<String, dynamic> toJson() => _$ChatwootNewMessageRequestToJson(this); 32 : 33 : }