FlexibleBannerConfig.fromJson constructor

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

Implementation

factory FlexibleBannerConfig.fromJson(Map<String, dynamic> json) =>
    FlexibleBannerConfig(
      enable: json['enable'] ?? false,
      data: json['data'] ?? {},
      canDrag: json['canDrag'] ?? true,
      canClose: json['canClose'] ?? true,
      width: json['width'] ?? 100.0,
      height: json['height'] ?? 100.0,
    );