Configuration.fromJson constructor

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

Implementation

factory Configuration.fromJson(Map<String, Object?> json) {
  return Configuration(
    attachmentsEnabled: json[r'attachmentsEnabled'] as bool? ?? false,
    issueLinkingEnabled: json[r'issueLinkingEnabled'] as bool? ?? false,
    subTasksEnabled: json[r'subTasksEnabled'] as bool? ?? false,
    timeTrackingConfiguration: json[r'timeTrackingConfiguration'] != null
        ? TimeTrackingConfiguration.fromJson(
            json[r'timeTrackingConfiguration']! as Map<String, Object?>)
        : null,
    timeTrackingEnabled: json[r'timeTrackingEnabled'] as bool? ?? false,
    unassignedIssuesAllowed:
        json[r'unassignedIssuesAllowed'] as bool? ?? false,
    votingEnabled: json[r'votingEnabled'] as bool? ?? false,
    watchingEnabled: json[r'watchingEnabled'] as bool? ?? false,
  );
}