fartstack/shared_models/lib/jwt.dart

21 lines
516 B
Dart

import 'package:json_annotation/json_annotation.dart';
part 'jwt.g.dart';
@JsonSerializable()
class JWTBody {
String uuid;
String roomUuid;
String roomCode;
// Issued at in epoch seconds
int iat;
// Expires at in epoch seconds
int exp;
JWTBody({required this.uuid, required this.roomUuid, required this.roomCode, required this.iat, required this.exp});
factory JWTBody.fromJson(Map<String, dynamic> json) => _$JWTBodyFromJson(json);
Map<String, dynamic> toJson() => _$JWTBodyToJson(this);
}