Query$getWidgetIntegrationByTarget$getWidgetIntegrationByTarget$content.fromJson constructor

Query$getWidgetIntegrationByTarget$getWidgetIntegrationByTarget$content.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory Query$getWidgetIntegrationByTarget$getWidgetIntegrationByTarget$content.fromJson(
    Map<String, dynamic> json) {
  final l$profile = json['profile'];
  final l$notification = json['notification'];
  final l$wallet = json['wallet'];
  final l$challenge = json['challenge'];
  final l$chat = json['chat'];
  final l$campaigns = json['campaigns'];
  final l$buttons = json['buttons'];
  final l$pages = json['pages'];
  final l$badges = json['badges'];
  final l$leaderboard = json['leaderboard'];
  final l$$__typename = json['__typename'];
  return Query$getWidgetIntegrationByTarget$getWidgetIntegrationByTarget$content(
    profile: (l$profile as bool?),
    notification: (l$notification as bool?),
    wallet: (l$wallet as bool?),
    challenge: (l$challenge as bool?),
    chat: (l$chat as bool?),
    campaigns: (l$campaigns as bool?),
    buttons: (l$buttons as bool?),
    pages: (l$pages as List<dynamic>?)
        ?.map((e) => fromJson$Enum$LandingPageTypeEnum((e as String)))
        .toList(),
    badges: (l$badges as bool?),
    leaderboard: (l$leaderboard as bool?),
    $__typename: (l$$__typename as String),
  );
}