mirror of
https://github.com/linagora/tmail-flutter.git
synced 2026-12-05 08:05:07 +00:00
33 lines
824 B
Dart
33 lines
824 B
Dart
import 'package:equatable/equatable.dart';
|
|
import 'package:json_annotation/json_annotation.dart';
|
|
|
|
part 'web_socket_ticket.g.dart';
|
|
|
|
@JsonSerializable(includeIfNull: false)
|
|
class WebSocketTicket with EquatableMixin {
|
|
final String? value;
|
|
final String? clientAddress;
|
|
final DateTime? generatedOn;
|
|
final DateTime? validUntil;
|
|
final String? username;
|
|
|
|
WebSocketTicket({
|
|
required this.value,
|
|
required this.clientAddress,
|
|
required this.generatedOn,
|
|
required this.validUntil,
|
|
required this.username,
|
|
});
|
|
|
|
factory WebSocketTicket.fromJson(Map<String, dynamic> json) => _$WebSocketTicketFromJson(json);
|
|
Map<String, dynamic> toJson() => _$WebSocketTicketToJson(this);
|
|
|
|
@override
|
|
List<Object?> get props => [
|
|
value,
|
|
clientAddress,
|
|
generatedOn,
|
|
validUntil,
|
|
username,
|
|
];
|
|
} |