SharedStoragePrivateAggregationConfig.fromJson constructor

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

Implementation

factory SharedStoragePrivateAggregationConfig.fromJson(
  Map<String, dynamic> json,
) {
  return SharedStoragePrivateAggregationConfig(
    aggregationCoordinatorOrigin:
        json.containsKey('aggregationCoordinatorOrigin')
        ? json['aggregationCoordinatorOrigin'] as String
        : null,
    contextId: json.containsKey('contextId')
        ? json['contextId'] as String
        : null,
    filteringIdMaxBytes: json['filteringIdMaxBytes'] as int,
    maxContributions: json.containsKey('maxContributions')
        ? json['maxContributions'] as int
        : null,
  );
}