import 'package:pshared/api/requests/tokens/session_identifier.dart';
import 'package:pshared/models/session_identifier.dart';

extension SessionIdentifierMapper on SessionIdentifier {
  SessionIdentifierDto toDTO() => SessionIdentifierDto(
    clientId: clientId,
    deviceId: deviceId,
  );
}

extension SessionIdentifierDtoMapper on SessionIdentifierDto {
  SessionIdentifier toDomain() => SessionIdentifier(
    clientId: clientId,
    deviceId: deviceId,
  );
}
