ListCourseWorkMaterialResponse.fromJson constructor

ListCourseWorkMaterialResponse.fromJson(
  1. Map json_
)

Implementation

ListCourseWorkMaterialResponse.fromJson(core.Map json_)
    : this(
        courseWorkMaterial: json_.containsKey('courseWorkMaterial')
            ? (json_['courseWorkMaterial'] as core.List)
                .map((value) => CourseWorkMaterial.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        nextPageToken: json_.containsKey('nextPageToken')
            ? json_['nextPageToken'] as core.String
            : null,
      );