PopupBannerConfig.fromJson constructor

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

Implementation

factory PopupBannerConfig.fromJson(Map<String, dynamic> json) =>
    PopupBannerConfig(
      enable: json['enable'] ?? false,
      data: json['data'] ?? {},
      alwaysShowUponOpen: json['alwaysShowUponOpen'] ?? true,
      closePosition: json['closePosition'] ?? 'topRight',
      updatedTime: json['updatedTime'] ?? 0,
    );