Analytics.fromJson constructor

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

Analytics.toJson() factory constructor.

Implementation

factory Analytics.fromJson(Map<String, dynamic> json) => Analytics(
      onload: json['onload'] == null
          ? null
          : Onclick.fromJson(
              json['onload'] as Map<String, dynamic>,
            ),
      onclick: json['onclick'] == null
          ? null
          : Onclick.fromJson(
              json['onclick'] as Map<String, dynamic>,
            ),
      onsent: json['onsent'] == null
          ? null
          : Onclick.fromJson(
              json['onsent'] as Map<String, dynamic>,
            ),
    );