GradebookSettings.fromJson constructor

GradebookSettings.fromJson(
  1. Map json_
)

Implementation

GradebookSettings.fromJson(core.Map json_)
    : this(
        calculationType: json_.containsKey('calculationType')
            ? json_['calculationType'] as core.String
            : null,
        displaySetting: json_.containsKey('displaySetting')
            ? json_['displaySetting'] as core.String
            : null,
        gradeCategories: json_.containsKey('gradeCategories')
            ? (json_['gradeCategories'] as core.List)
                .map((value) => GradeCategory.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );