AttributionData.fromJson constructor

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

Creates an AttributionData object from a JSON map.

Implementation

factory AttributionData.fromJson(Map<String, dynamic> json) {
  return AttributionData(
    offer: json['offer'] != null
        ? AttributionOffer.fromJson(json['offer'])
        : null,
    publisher: json['publisher'] != null
        ? AttributionPublisher.fromJson(json['publisher'])
        : null,
    ids: json['ids'] != null ? Ids.fromJson(json['ids']) : null,
    decision: json['decision'] != null
        ? PostbackDecision.fromJson(json['decision'])
        : null,
    googleInstallReferrer: json['googleInstallReferrer'] != null
        ? GoogleInstallReferrerData.fromJson(json['googleInstallReferrer'])
        : null,
  );
}