Testing is complete!! And a nice build runner script to boot
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
import 'package:json_annotation/json_annotation.dart';
|
||||
|
||||
part 'jwt.g.dart';
|
||||
|
||||
@JsonSerializable()
|
||||
class JWTBody {
|
||||
String uuid;
|
||||
String roomUuid;
|
||||
int iat;
|
||||
int exp;
|
||||
|
||||
JWTBody({required this.uuid, required this.roomUuid, required this.iat, required this.exp});
|
||||
|
||||
factory JWTBody.fromJson(Map<String, dynamic> json) => _$JWTBodyFromJson(json);
|
||||
|
||||
Map<String, dynamic> toJson() => _$JWTBodyToJson(this);
|
||||
}
|
||||
Reference in New Issue
Block a user