bodyForEventSchemaCall method
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);
}