FeedbackConfig.fromJson constructor

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

Implementation

factory FeedbackConfig.fromJson(Map<String, dynamic> json) {
  return FeedbackConfig(
    events: json['events'] != null
        ? Map<String, int>.from(json['events'] as Map)
        : null,
    expirationDelayDays: json['expiration_delay_days'] as int?,
    doNotDisturbOnNewVersion: json['do_not_disturb_on_new_version'] as bool?,
  );
}