FirstPartyBatchConfig.fromJson constructor

FirstPartyBatchConfig.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory FirstPartyBatchConfig.fromJson(Map<String, dynamic> json) {
  return FirstPartyBatchConfig(
    scheduledDelayMillis: json['scheduledDelayMillis'] as int? ?? 10000,
    maxExportBatchSize: json['maxExportBatchSize'] as int? ?? 200,
    maxQueueSize: json['maxQueueSize'] as int? ?? 8192,
    skipAuth: json['skipAuth'] as bool? ?? false,
    maxAttempts: json['maxAttempts'] as int? ?? 8,
    path: json['path'] as String?,
    baseUrl: json['baseUrl'] as String?,
  );
}