bodyForEventSchemaCall method

EventSchemaBody bodyForEventSchemaCall({
  1. required String eventName,
  2. required List<Map<String, dynamic>> eventSchema,
  3. required String sessionId,
  4. required String installationId,
})

Implementation

EventSchemaBody bodyForEventSchemaCall(
    {required String eventName,
    required List<Map<String, dynamic>> eventSchema,
    required String sessionId,
    required String installationId}) {
  return EventSchemaBody(
      apiKey: this.apiKey,
      appName: this.appName,
      appVersion: this.appVersion,
      libVersion: this.libVersion,
      env: this.envName,
      messageId: Uuid().v1(),
      trackingId: installationId,
      createdAt: DateTime.now().toIso8601String() + "Z",
      sessionId: sessionId,
      eventName: eventName,
      samplingRate: samplingRate,
      eventSchema: eventSchema);
}