ListCourseWorkResponse.fromJson constructor

ListCourseWorkResponse.fromJson(
  1. Map json_
)

Implementation

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