Frontend first draft
This commit is contained in:
18
frontend/pshared/lib/api/requests/tokens/session_id.dart
Normal file
18
frontend/pshared/lib/api/requests/tokens/session_id.dart
Normal file
@@ -0,0 +1,18 @@
|
||||
import 'package:json_annotation/json_annotation.dart';
|
||||
|
||||
part 'session_id.g.dart';
|
||||
|
||||
|
||||
@JsonSerializable(explicitToJson: true)
|
||||
class SessionID {
|
||||
final String clientId;
|
||||
final String deviceId;
|
||||
|
||||
const SessionID({
|
||||
required this.clientId,
|
||||
required this.deviceId,
|
||||
});
|
||||
|
||||
factory SessionID.fromJson(Map<String, dynamic> json) => _$SessionIDFromJson(json);
|
||||
Map<String, dynamic> toJson() => _$SessionIDToJson(this);
|
||||
}
|
||||
Reference in New Issue
Block a user