bodyForSessionStaretedCall method

SessionStartedBody bodyForSessionStaretedCall({
  1. required String sessionId,
  2. required String installationId,
})

Implementation

SessionStartedBody bodyForSessionStaretedCall(
    {required String sessionId, required String installationId}) {
  return SessionStartedBody(
      apiKey: this.apiKey,
      appName: this.appName,
      appVersion: this.appVersion,
      libVersion: this.libVersion,
      env: this.envName,
      messageId: Uuid().v1(),
      trackingId: installationId,
      samplingRate: samplingRate,
      createdAt: DateTime.now().toIso8601String(),
      sessionId: sessionId);
}