AnnouncementBannerConfigurationUpdate.fromJson constructor

AnnouncementBannerConfigurationUpdate.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory AnnouncementBannerConfigurationUpdate.fromJson(
    Map<String, Object?> json) {
  return AnnouncementBannerConfigurationUpdate(
    isDismissible: json[r'isDismissible'] as bool? ?? false,
    isEnabled: json[r'isEnabled'] as bool? ?? false,
    message: json[r'message'] as String?,
    visibility: json[r'visibility'] as String?,
  );
}