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,
  );
}
