AttributionReportingAggregatableDebugReportingConfig.fromJson constructor

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

Implementation

factory AttributionReportingAggregatableDebugReportingConfig.fromJson(
    Map<String, dynamic> json) {
  return AttributionReportingAggregatableDebugReportingConfig(
    budget: json.containsKey('budget') ? json['budget'] as num : null,
    keyPiece: UnsignedInt128AsBase16.fromJson(json['keyPiece'] as String),
    debugData: (json['debugData'] as List)
        .map((e) =>
            AttributionReportingAggregatableDebugReportingData.fromJson(
                e as Map<String, dynamic>))
        .toList(),
    aggregationCoordinatorOrigin:
        json.containsKey('aggregationCoordinatorOrigin')
            ? json['aggregationCoordinatorOrigin'] as String
            : null,
  );
}