| OLD | NEW |
| 1 // This is a generated file (see the discoveryapis_generator project). | 1 // This is a generated file (see the discoveryapis_generator project). |
| 2 | 2 |
| 3 library googleapis.classroom.v1; | 3 library googleapis.classroom.v1; |
| 4 | 4 |
| 5 import 'dart:core' as core; | 5 import 'dart:core' as core; |
| 6 import 'dart:async' as async; | 6 import 'dart:async' as async; |
| 7 import 'dart:convert' as convert; | 7 import 'dart:convert' as convert; |
| 8 | 8 |
| 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; | 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; |
| 10 import 'package:http/http.dart' as http; | 10 import 'package:http/http.dart' as http; |
| (...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 247 * restricted to those that match the request. | 247 * restricted to those that match the request. |
| 248 * | 248 * |
| 249 * This method returns the following error codes: | 249 * This method returns the following error codes: |
| 250 * | 250 * |
| 251 * * `PERMISSION_DENIED` for access errors. | 251 * * `PERMISSION_DENIED` for access errors. |
| 252 * * `INVALID_ARGUMENT` if the query argument is malformed. | 252 * * `INVALID_ARGUMENT` if the query argument is malformed. |
| 253 * * `NOT_FOUND` if any users specified in the query arguments do not exist. | 253 * * `NOT_FOUND` if any users specified in the query arguments do not exist. |
| 254 * | 254 * |
| 255 * Request parameters: | 255 * Request parameters: |
| 256 * | 256 * |
| 257 * [teacherId] - Restricts returned courses to those having a teacher with the | |
| 258 * specified | |
| 259 * identifier. The identifier can be one of the following: | |
| 260 * | |
| 261 * * the numeric identifier for the user | |
| 262 * * the email address of the user | |
| 263 * * the string literal `"me"`, indicating the requesting user | |
| 264 * | |
| 265 * [courseStates] - Restricts returned courses to those in one of the | |
| 266 * specified states | |
| 267 * The default value is ACTIVE, ARCHIVED, PROVISIONED, DECLINED. | |
| 268 * | |
| 269 * [studentId] - Restricts returned courses to those having a student with the | 257 * [studentId] - Restricts returned courses to those having a student with the |
| 270 * specified | 258 * specified |
| 271 * identifier. The identifier can be one of the following: | 259 * identifier. The identifier can be one of the following: |
| 272 * | 260 * |
| 273 * * the numeric identifier for the user | 261 * * the numeric identifier for the user |
| 274 * * the email address of the user | 262 * * the email address of the user |
| 275 * * the string literal `"me"`, indicating the requesting user | 263 * * the string literal `"me"`, indicating the requesting user |
| 276 * | 264 * |
| 277 * [pageToken] - nextPageToken | 265 * [pageToken] - nextPageToken |
| 278 * value returned from a previous | 266 * value returned from a previous |
| 279 * list call, | 267 * list call, |
| 280 * indicating that the subsequent page of results should be returned. | 268 * indicating that the subsequent page of results should be returned. |
| 281 * | 269 * |
| 282 * The list request must be | 270 * The list request must be |
| 283 * otherwise identical to the one that resulted in this token. | 271 * otherwise identical to the one that resulted in this token. |
| 284 * | 272 * |
| 285 * [pageSize] - Maximum number of items to return. Zero or unspecified | 273 * [pageSize] - Maximum number of items to return. Zero or unspecified |
| 286 * indicates that the | 274 * indicates that the |
| 287 * server may assign a maximum. | 275 * server may assign a maximum. |
| 288 * | 276 * |
| 289 * The server may return fewer than the specified number of results. | 277 * The server may return fewer than the specified number of results. |
| 290 * | 278 * |
| 279 * [teacherId] - Restricts returned courses to those having a teacher with the |
| 280 * specified |
| 281 * identifier. The identifier can be one of the following: |
| 282 * |
| 283 * * the numeric identifier for the user |
| 284 * * the email address of the user |
| 285 * * the string literal `"me"`, indicating the requesting user |
| 286 * |
| 287 * [courseStates] - Restricts returned courses to those in one of the |
| 288 * specified states |
| 289 * The default value is ACTIVE, ARCHIVED, PROVISIONED, DECLINED. |
| 290 * |
| 291 * Completes with a [ListCoursesResponse]. | 291 * Completes with a [ListCoursesResponse]. |
| 292 * | 292 * |
| 293 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 293 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 294 * error. | 294 * error. |
| 295 * | 295 * |
| 296 * If the used [http.Client] completes with an error when making a REST call, | 296 * If the used [http.Client] completes with an error when making a REST call, |
| 297 * this method will complete with the same error. | 297 * this method will complete with the same error. |
| 298 */ | 298 */ |
| 299 async.Future<ListCoursesResponse> list({core.String teacherId, core.List<core.
String> courseStates, core.String studentId, core.String pageToken, core.int pag
eSize}) { | 299 async.Future<ListCoursesResponse> list({core.String studentId, core.String pag
eToken, core.int pageSize, core.String teacherId, core.List<core.String> courseS
tates}) { |
| 300 var _url = null; | 300 var _url = null; |
| 301 var _queryParams = new core.Map(); | 301 var _queryParams = new core.Map(); |
| 302 var _uploadMedia = null; | 302 var _uploadMedia = null; |
| 303 var _uploadOptions = null; | 303 var _uploadOptions = null; |
| 304 var _downloadOptions = commons.DownloadOptions.Metadata; | 304 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 305 var _body = null; | 305 var _body = null; |
| 306 | 306 |
| 307 if (teacherId != null) { | |
| 308 _queryParams["teacherId"] = [teacherId]; | |
| 309 } | |
| 310 if (courseStates != null) { | |
| 311 _queryParams["courseStates"] = courseStates; | |
| 312 } | |
| 313 if (studentId != null) { | 307 if (studentId != null) { |
| 314 _queryParams["studentId"] = [studentId]; | 308 _queryParams["studentId"] = [studentId]; |
| 315 } | 309 } |
| 316 if (pageToken != null) { | 310 if (pageToken != null) { |
| 317 _queryParams["pageToken"] = [pageToken]; | 311 _queryParams["pageToken"] = [pageToken]; |
| 318 } | 312 } |
| 319 if (pageSize != null) { | 313 if (pageSize != null) { |
| 320 _queryParams["pageSize"] = ["${pageSize}"]; | 314 _queryParams["pageSize"] = ["${pageSize}"]; |
| 321 } | 315 } |
| 316 if (teacherId != null) { |
| 317 _queryParams["teacherId"] = [teacherId]; |
| 318 } |
| 319 if (courseStates != null) { |
| 320 _queryParams["courseStates"] = courseStates; |
| 321 } |
| 322 | 322 |
| 323 _url = 'v1/courses'; | 323 _url = 'v1/courses'; |
| 324 | 324 |
| 325 var _response = _requester.request(_url, | 325 var _response = _requester.request(_url, |
| 326 "GET", | 326 "GET", |
| 327 body: _body, | 327 body: _body, |
| 328 queryParams: _queryParams, | 328 queryParams: _queryParams, |
| 329 uploadOptions: _uploadOptions, | 329 uploadOptions: _uploadOptions, |
| 330 uploadMedia: _uploadMedia, | 330 uploadMedia: _uploadMedia, |
| 331 downloadOptions: _downloadOptions); | 331 downloadOptions: _downloadOptions); |
| (...skipping 769 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1101 * Request parameters: | 1101 * Request parameters: |
| 1102 * | 1102 * |
| 1103 * [courseId] - Identifier of the course. | 1103 * [courseId] - Identifier of the course. |
| 1104 * This identifier can be either the Classroom-assigned identifier or an | 1104 * This identifier can be either the Classroom-assigned identifier or an |
| 1105 * alias. | 1105 * alias. |
| 1106 * | 1106 * |
| 1107 * [courseWorkId] - Identifer of the student work to request. | 1107 * [courseWorkId] - Identifer of the student work to request. |
| 1108 * This may be set to the string literal `"-"` to request student work for | 1108 * This may be set to the string literal `"-"` to request student work for |
| 1109 * all course work in the specified course. | 1109 * all course work in the specified course. |
| 1110 * | 1110 * |
| 1111 * [late] - Requested lateness value. If specified, returned student |
| 1112 * submissions are |
| 1113 * restricted by the requested value. |
| 1114 * If unspecified, submissions are returned regardless of `late` value. |
| 1115 * Possible string values are: |
| 1116 * - "LATE_VALUES_UNSPECIFIED" : A LATE_VALUES_UNSPECIFIED. |
| 1117 * - "LATE_ONLY" : A LATE_ONLY. |
| 1118 * - "NOT_LATE_ONLY" : A NOT_LATE_ONLY. |
| 1119 * |
| 1120 * [pageToken] - nextPageToken |
| 1121 * value returned from a previous |
| 1122 * list call, |
| 1123 * indicating that the subsequent page of results should be returned. |
| 1124 * |
| 1125 * The list request |
| 1126 * must be otherwise identical to the one that resulted in this token. |
| 1127 * |
| 1111 * [pageSize] - Maximum number of items to return. Zero or unspecified | 1128 * [pageSize] - Maximum number of items to return. Zero or unspecified |
| 1112 * indicates that the | 1129 * indicates that the |
| 1113 * server may assign a maximum. | 1130 * server may assign a maximum. |
| 1114 * | 1131 * |
| 1115 * The server may return fewer than the specified number of results. | 1132 * The server may return fewer than the specified number of results. |
| 1116 * | 1133 * |
| 1117 * [states] - Requested submission states. If specified, returned student | 1134 * [states] - Requested submission states. If specified, returned student |
| 1118 * submissions | 1135 * submissions |
| 1119 * match one of the specified submission states. | 1136 * match one of the specified submission states. |
| 1120 * | 1137 * |
| 1121 * [userId] - Optional argument to restrict returned student work to those | 1138 * [userId] - Optional argument to restrict returned student work to those |
| 1122 * owned by the | 1139 * owned by the |
| 1123 * student with the specified identifier. The identifier can be one of the | 1140 * student with the specified identifier. The identifier can be one of the |
| 1124 * following: | 1141 * following: |
| 1125 * | 1142 * |
| 1126 * * the numeric identifier for the user | 1143 * * the numeric identifier for the user |
| 1127 * * the email address of the user | 1144 * * the email address of the user |
| 1128 * * the string literal `"me"`, indicating the requesting user | 1145 * * the string literal `"me"`, indicating the requesting user |
| 1129 * | 1146 * |
| 1130 * [late] - Requested lateness value. If specified, returned student | |
| 1131 * submissions are | |
| 1132 * restricted by the requested value. | |
| 1133 * If unspecified, submissions are returned regardless of `late` value. | |
| 1134 * Possible string values are: | |
| 1135 * - "LATE_VALUES_UNSPECIFIED" : A LATE_VALUES_UNSPECIFIED. | |
| 1136 * - "LATE_ONLY" : A LATE_ONLY. | |
| 1137 * - "NOT_LATE_ONLY" : A NOT_LATE_ONLY. | |
| 1138 * | |
| 1139 * [pageToken] - nextPageToken | |
| 1140 * value returned from a previous | |
| 1141 * list call, | |
| 1142 * indicating that the subsequent page of results should be returned. | |
| 1143 * | |
| 1144 * The list request | |
| 1145 * must be otherwise identical to the one that resulted in this token. | |
| 1146 * | |
| 1147 * Completes with a [ListStudentSubmissionsResponse]. | 1147 * Completes with a [ListStudentSubmissionsResponse]. |
| 1148 * | 1148 * |
| 1149 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1149 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1150 * error. | 1150 * error. |
| 1151 * | 1151 * |
| 1152 * If the used [http.Client] completes with an error when making a REST call, | 1152 * If the used [http.Client] completes with an error when making a REST call, |
| 1153 * this method will complete with the same error. | 1153 * this method will complete with the same error. |
| 1154 */ | 1154 */ |
| 1155 async.Future<ListStudentSubmissionsResponse> list(core.String courseId, core.S
tring courseWorkId, {core.int pageSize, core.List<core.String> states, core.Stri
ng userId, core.String late, core.String pageToken}) { | 1155 async.Future<ListStudentSubmissionsResponse> list(core.String courseId, core.S
tring courseWorkId, {core.String late, core.String pageToken, core.int pageSize,
core.List<core.String> states, core.String userId}) { |
| 1156 var _url = null; | 1156 var _url = null; |
| 1157 var _queryParams = new core.Map(); | 1157 var _queryParams = new core.Map(); |
| 1158 var _uploadMedia = null; | 1158 var _uploadMedia = null; |
| 1159 var _uploadOptions = null; | 1159 var _uploadOptions = null; |
| 1160 var _downloadOptions = commons.DownloadOptions.Metadata; | 1160 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1161 var _body = null; | 1161 var _body = null; |
| 1162 | 1162 |
| 1163 if (courseId == null) { | 1163 if (courseId == null) { |
| 1164 throw new core.ArgumentError("Parameter courseId is required."); | 1164 throw new core.ArgumentError("Parameter courseId is required."); |
| 1165 } | 1165 } |
| 1166 if (courseWorkId == null) { | 1166 if (courseWorkId == null) { |
| 1167 throw new core.ArgumentError("Parameter courseWorkId is required."); | 1167 throw new core.ArgumentError("Parameter courseWorkId is required."); |
| 1168 } | 1168 } |
| 1169 if (late != null) { |
| 1170 _queryParams["late"] = [late]; |
| 1171 } |
| 1172 if (pageToken != null) { |
| 1173 _queryParams["pageToken"] = [pageToken]; |
| 1174 } |
| 1169 if (pageSize != null) { | 1175 if (pageSize != null) { |
| 1170 _queryParams["pageSize"] = ["${pageSize}"]; | 1176 _queryParams["pageSize"] = ["${pageSize}"]; |
| 1171 } | 1177 } |
| 1172 if (states != null) { | 1178 if (states != null) { |
| 1173 _queryParams["states"] = states; | 1179 _queryParams["states"] = states; |
| 1174 } | 1180 } |
| 1175 if (userId != null) { | 1181 if (userId != null) { |
| 1176 _queryParams["userId"] = [userId]; | 1182 _queryParams["userId"] = [userId]; |
| 1177 } | 1183 } |
| 1178 if (late != null) { | |
| 1179 _queryParams["late"] = [late]; | |
| 1180 } | |
| 1181 if (pageToken != null) { | |
| 1182 _queryParams["pageToken"] = [pageToken]; | |
| 1183 } | |
| 1184 | 1184 |
| 1185 _url = 'v1/courses/' + commons.Escaper.ecapeVariable('$courseId') + '/course
Work/' + commons.Escaper.ecapeVariable('$courseWorkId') + '/studentSubmissions'; | 1185 _url = 'v1/courses/' + commons.Escaper.ecapeVariable('$courseId') + '/course
Work/' + commons.Escaper.ecapeVariable('$courseWorkId') + '/studentSubmissions'; |
| 1186 | 1186 |
| 1187 var _response = _requester.request(_url, | 1187 var _response = _requester.request(_url, |
| 1188 "GET", | 1188 "GET", |
| 1189 body: _body, | 1189 body: _body, |
| 1190 queryParams: _queryParams, | 1190 queryParams: _queryParams, |
| 1191 uploadOptions: _uploadOptions, | 1191 uploadOptions: _uploadOptions, |
| 1192 uploadMedia: _uploadMedia, | 1192 uploadMedia: _uploadMedia, |
| 1193 downloadOptions: _downloadOptions); | 1193 downloadOptions: _downloadOptions); |
| (...skipping 1406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2600 * returned. | 2600 * returned. |
| 2601 * The identifier can be one of the following: | 2601 * The identifier can be one of the following: |
| 2602 * | 2602 * |
| 2603 * * the numeric identifier for the user | 2603 * * the numeric identifier for the user |
| 2604 * * the email address of the user | 2604 * * the email address of the user |
| 2605 * * the string literal `"me"`, indicating the requesting user | 2605 * * the string literal `"me"`, indicating the requesting user |
| 2606 * * the string literal `"-"`, indicating that results should be returned for | 2606 * * the string literal `"-"`, indicating that results should be returned for |
| 2607 * all students that the requesting user is permitted to view guardian | 2607 * all students that the requesting user is permitted to view guardian |
| 2608 * invitations. | 2608 * invitations. |
| 2609 * | 2609 * |
| 2610 * [pageToken] - nextPageToken |
| 2611 * value returned from a previous |
| 2612 * list call, |
| 2613 * indicating that the subsequent page of results should be returned. |
| 2614 * |
| 2615 * The list request |
| 2616 * must be otherwise identical to the one that resulted in this token. |
| 2617 * |
| 2610 * [invitedEmailAddress] - If specified, only results with the specified | 2618 * [invitedEmailAddress] - If specified, only results with the specified |
| 2611 * `invited_email_address` | 2619 * `invited_email_address` |
| 2612 * will be returned. | 2620 * will be returned. |
| 2613 * | 2621 * |
| 2614 * [states] - If specified, only results with the specified `state` values | 2622 * [states] - If specified, only results with the specified `state` values |
| 2615 * will be | 2623 * will be |
| 2616 * returned. Otherwise, results with a `state` of `PENDING` will be returned. | 2624 * returned. Otherwise, results with a `state` of `PENDING` will be returned. |
| 2617 * | 2625 * |
| 2618 * [pageSize] - Maximum number of items to return. Zero or unspecified | 2626 * [pageSize] - Maximum number of items to return. Zero or unspecified |
| 2619 * indicates that the | 2627 * indicates that the |
| 2620 * server may assign a maximum. | 2628 * server may assign a maximum. |
| 2621 * | 2629 * |
| 2622 * The server may return fewer than the specified number of results. | 2630 * The server may return fewer than the specified number of results. |
| 2623 * | 2631 * |
| 2624 * [pageToken] - nextPageToken | |
| 2625 * value returned from a previous | |
| 2626 * list call, | |
| 2627 * indicating that the subsequent page of results should be returned. | |
| 2628 * | |
| 2629 * The list request | |
| 2630 * must be otherwise identical to the one that resulted in this token. | |
| 2631 * | |
| 2632 * Completes with a [ListGuardianInvitationsResponse]. | 2632 * Completes with a [ListGuardianInvitationsResponse]. |
| 2633 * | 2633 * |
| 2634 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 2634 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 2635 * error. | 2635 * error. |
| 2636 * | 2636 * |
| 2637 * If the used [http.Client] completes with an error when making a REST call, | 2637 * If the used [http.Client] completes with an error when making a REST call, |
| 2638 * this method will complete with the same error. | 2638 * this method will complete with the same error. |
| 2639 */ | 2639 */ |
| 2640 async.Future<ListGuardianInvitationsResponse> list(core.String studentId, {cor
e.String invitedEmailAddress, core.List<core.String> states, core.int pageSize,
core.String pageToken}) { | 2640 async.Future<ListGuardianInvitationsResponse> list(core.String studentId, {cor
e.String pageToken, core.String invitedEmailAddress, core.List<core.String> stat
es, core.int pageSize}) { |
| 2641 var _url = null; | 2641 var _url = null; |
| 2642 var _queryParams = new core.Map(); | 2642 var _queryParams = new core.Map(); |
| 2643 var _uploadMedia = null; | 2643 var _uploadMedia = null; |
| 2644 var _uploadOptions = null; | 2644 var _uploadOptions = null; |
| 2645 var _downloadOptions = commons.DownloadOptions.Metadata; | 2645 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 2646 var _body = null; | 2646 var _body = null; |
| 2647 | 2647 |
| 2648 if (studentId == null) { | 2648 if (studentId == null) { |
| 2649 throw new core.ArgumentError("Parameter studentId is required."); | 2649 throw new core.ArgumentError("Parameter studentId is required."); |
| 2650 } | 2650 } |
| 2651 if (pageToken != null) { |
| 2652 _queryParams["pageToken"] = [pageToken]; |
| 2653 } |
| 2651 if (invitedEmailAddress != null) { | 2654 if (invitedEmailAddress != null) { |
| 2652 _queryParams["invitedEmailAddress"] = [invitedEmailAddress]; | 2655 _queryParams["invitedEmailAddress"] = [invitedEmailAddress]; |
| 2653 } | 2656 } |
| 2654 if (states != null) { | 2657 if (states != null) { |
| 2655 _queryParams["states"] = states; | 2658 _queryParams["states"] = states; |
| 2656 } | 2659 } |
| 2657 if (pageSize != null) { | 2660 if (pageSize != null) { |
| 2658 _queryParams["pageSize"] = ["${pageSize}"]; | 2661 _queryParams["pageSize"] = ["${pageSize}"]; |
| 2659 } | 2662 } |
| 2660 if (pageToken != null) { | |
| 2661 _queryParams["pageToken"] = [pageToken]; | |
| 2662 } | |
| 2663 | 2663 |
| 2664 _url = 'v1/userProfiles/' + commons.Escaper.ecapeVariable('$studentId') + '/
guardianInvitations'; | 2664 _url = 'v1/userProfiles/' + commons.Escaper.ecapeVariable('$studentId') + '/
guardianInvitations'; |
| 2665 | 2665 |
| 2666 var _response = _requester.request(_url, | 2666 var _response = _requester.request(_url, |
| 2667 "GET", | 2667 "GET", |
| 2668 body: _body, | 2668 body: _body, |
| 2669 queryParams: _queryParams, | 2669 queryParams: _queryParams, |
| 2670 uploadOptions: _uploadOptions, | 2670 uploadOptions: _uploadOptions, |
| 2671 uploadMedia: _uploadMedia, | 2671 uploadMedia: _uploadMedia, |
| 2672 downloadOptions: _downloadOptions); | 2672 downloadOptions: _downloadOptions); |
| (...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2997 DriveFolder studentWorkFolder; | 2997 DriveFolder studentWorkFolder; |
| 2998 | 2998 |
| 2999 Assignment(); | 2999 Assignment(); |
| 3000 | 3000 |
| 3001 Assignment.fromJson(core.Map _json) { | 3001 Assignment.fromJson(core.Map _json) { |
| 3002 if (_json.containsKey("studentWorkFolder")) { | 3002 if (_json.containsKey("studentWorkFolder")) { |
| 3003 studentWorkFolder = new DriveFolder.fromJson(_json["studentWorkFolder"]); | 3003 studentWorkFolder = new DriveFolder.fromJson(_json["studentWorkFolder"]); |
| 3004 } | 3004 } |
| 3005 } | 3005 } |
| 3006 | 3006 |
| 3007 core.Map toJson() { | 3007 core.Map<core.String, core.Object> toJson() { |
| 3008 var _json = new core.Map(); | 3008 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 3009 if (studentWorkFolder != null) { | 3009 if (studentWorkFolder != null) { |
| 3010 _json["studentWorkFolder"] = (studentWorkFolder).toJson(); | 3010 _json["studentWorkFolder"] = (studentWorkFolder).toJson(); |
| 3011 } | 3011 } |
| 3012 return _json; | 3012 return _json; |
| 3013 } | 3013 } |
| 3014 } | 3014 } |
| 3015 | 3015 |
| 3016 /** Student work for an assignment. */ | 3016 /** Student work for an assignment. */ |
| 3017 class AssignmentSubmission { | 3017 class AssignmentSubmission { |
| 3018 /** | 3018 /** |
| 3019 * Attachments added by the student. | 3019 * Attachments added by the student. |
| 3020 * Drive files that correspond to materials with a share mode of | 3020 * Drive files that correspond to materials with a share mode of |
| 3021 * STUDENT_COPY may not exist yet if the student has not accessed the | 3021 * STUDENT_COPY may not exist yet if the student has not accessed the |
| 3022 * assignment in Classroom. | 3022 * assignment in Classroom. |
| 3023 * | 3023 * |
| 3024 * Some attachment metadata is only populated if the requesting user has | 3024 * Some attachment metadata is only populated if the requesting user has |
| 3025 * permission to access it. Identifier and alternate_link fields are always | 3025 * permission to access it. Identifier and alternate_link fields are always |
| 3026 * available, but others (e.g. title) may not be. | 3026 * available, but others (e.g. title) may not be. |
| 3027 */ | 3027 */ |
| 3028 core.List<Attachment> attachments; | 3028 core.List<Attachment> attachments; |
| 3029 | 3029 |
| 3030 AssignmentSubmission(); | 3030 AssignmentSubmission(); |
| 3031 | 3031 |
| 3032 AssignmentSubmission.fromJson(core.Map _json) { | 3032 AssignmentSubmission.fromJson(core.Map _json) { |
| 3033 if (_json.containsKey("attachments")) { | 3033 if (_json.containsKey("attachments")) { |
| 3034 attachments = _json["attachments"].map((value) => new Attachment.fromJson(
value)).toList(); | 3034 attachments = _json["attachments"].map((value) => new Attachment.fromJson(
value)).toList(); |
| 3035 } | 3035 } |
| 3036 } | 3036 } |
| 3037 | 3037 |
| 3038 core.Map toJson() { | 3038 core.Map<core.String, core.Object> toJson() { |
| 3039 var _json = new core.Map(); | 3039 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 3040 if (attachments != null) { | 3040 if (attachments != null) { |
| 3041 _json["attachments"] = attachments.map((value) => (value).toJson()).toList
(); | 3041 _json["attachments"] = attachments.map((value) => (value).toJson()).toList
(); |
| 3042 } | 3042 } |
| 3043 return _json; | 3043 return _json; |
| 3044 } | 3044 } |
| 3045 } | 3045 } |
| 3046 | 3046 |
| 3047 /** | 3047 /** |
| 3048 * Attachment added to student assignment work. | 3048 * Attachment added to student assignment work. |
| 3049 * | 3049 * |
| (...skipping 19 matching lines...) Expand all Loading... |
| 3069 form = new Form.fromJson(_json["form"]); | 3069 form = new Form.fromJson(_json["form"]); |
| 3070 } | 3070 } |
| 3071 if (_json.containsKey("link")) { | 3071 if (_json.containsKey("link")) { |
| 3072 link = new Link.fromJson(_json["link"]); | 3072 link = new Link.fromJson(_json["link"]); |
| 3073 } | 3073 } |
| 3074 if (_json.containsKey("youTubeVideo")) { | 3074 if (_json.containsKey("youTubeVideo")) { |
| 3075 youTubeVideo = new YouTubeVideo.fromJson(_json["youTubeVideo"]); | 3075 youTubeVideo = new YouTubeVideo.fromJson(_json["youTubeVideo"]); |
| 3076 } | 3076 } |
| 3077 } | 3077 } |
| 3078 | 3078 |
| 3079 core.Map toJson() { | 3079 core.Map<core.String, core.Object> toJson() { |
| 3080 var _json = new core.Map(); | 3080 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 3081 if (driveFile != null) { | 3081 if (driveFile != null) { |
| 3082 _json["driveFile"] = (driveFile).toJson(); | 3082 _json["driveFile"] = (driveFile).toJson(); |
| 3083 } | 3083 } |
| 3084 if (form != null) { | 3084 if (form != null) { |
| 3085 _json["form"] = (form).toJson(); | 3085 _json["form"] = (form).toJson(); |
| 3086 } | 3086 } |
| 3087 if (link != null) { | 3087 if (link != null) { |
| 3088 _json["link"] = (link).toJson(); | 3088 _json["link"] = (link).toJson(); |
| 3089 } | 3089 } |
| 3090 if (youTubeVideo != null) { | 3090 if (youTubeVideo != null) { |
| 3091 _json["youTubeVideo"] = (youTubeVideo).toJson(); | 3091 _json["youTubeVideo"] = (youTubeVideo).toJson(); |
| 3092 } | 3092 } |
| 3093 return _json; | 3093 return _json; |
| 3094 } | 3094 } |
| 3095 } | 3095 } |
| 3096 | 3096 |
| 3097 /** A Course in Classroom. */ | 3097 /** A Course in Classroom. */ |
| 3098 class Course { | 3098 class Course { |
| 3099 /** | 3099 /** |
| 3100 * Absolute link to this course in the Classroom web UI. | 3100 * Absolute link to this course in the Classroom web UI. |
| 3101 * | 3101 * |
| 3102 * Read-only. | 3102 * Read-only. |
| 3103 */ | 3103 */ |
| 3104 core.String alternateLink; | 3104 core.String alternateLink; |
| 3105 /** | 3105 /** |
| 3106 * The Calendar ID for a calendar that all course members can see, to which |
| 3107 * Classroom adds events for course work and announcements in the course. |
| 3108 * |
| 3109 * Read-only. |
| 3110 */ |
| 3111 core.String calendarId; |
| 3112 /** |
| 3106 * The email address of a Google group containing all members of the course. | 3113 * The email address of a Google group containing all members of the course. |
| 3107 * This group does not accept email and can only be used for permissions. | 3114 * This group does not accept email and can only be used for permissions. |
| 3108 * | 3115 * |
| 3109 * Read-only. | 3116 * Read-only. |
| 3110 */ | 3117 */ |
| 3111 core.String courseGroupEmail; | 3118 core.String courseGroupEmail; |
| 3112 /** | 3119 /** |
| 3113 * Sets of materials that appear on the "about" page of this course. | 3120 * Sets of materials that appear on the "about" page of this course. |
| 3114 * | 3121 * |
| 3115 * Read-only. | 3122 * Read-only. |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3255 * Read-only. | 3262 * Read-only. |
| 3256 */ | 3263 */ |
| 3257 core.String updateTime; | 3264 core.String updateTime; |
| 3258 | 3265 |
| 3259 Course(); | 3266 Course(); |
| 3260 | 3267 |
| 3261 Course.fromJson(core.Map _json) { | 3268 Course.fromJson(core.Map _json) { |
| 3262 if (_json.containsKey("alternateLink")) { | 3269 if (_json.containsKey("alternateLink")) { |
| 3263 alternateLink = _json["alternateLink"]; | 3270 alternateLink = _json["alternateLink"]; |
| 3264 } | 3271 } |
| 3272 if (_json.containsKey("calendarId")) { |
| 3273 calendarId = _json["calendarId"]; |
| 3274 } |
| 3265 if (_json.containsKey("courseGroupEmail")) { | 3275 if (_json.containsKey("courseGroupEmail")) { |
| 3266 courseGroupEmail = _json["courseGroupEmail"]; | 3276 courseGroupEmail = _json["courseGroupEmail"]; |
| 3267 } | 3277 } |
| 3268 if (_json.containsKey("courseMaterialSets")) { | 3278 if (_json.containsKey("courseMaterialSets")) { |
| 3269 courseMaterialSets = _json["courseMaterialSets"].map((value) => new Course
MaterialSet.fromJson(value)).toList(); | 3279 courseMaterialSets = _json["courseMaterialSets"].map((value) => new Course
MaterialSet.fromJson(value)).toList(); |
| 3270 } | 3280 } |
| 3271 if (_json.containsKey("courseState")) { | 3281 if (_json.containsKey("courseState")) { |
| 3272 courseState = _json["courseState"]; | 3282 courseState = _json["courseState"]; |
| 3273 } | 3283 } |
| 3274 if (_json.containsKey("creationTime")) { | 3284 if (_json.containsKey("creationTime")) { |
| (...skipping 30 matching lines...) Expand all Loading... |
| 3305 teacherFolder = new DriveFolder.fromJson(_json["teacherFolder"]); | 3315 teacherFolder = new DriveFolder.fromJson(_json["teacherFolder"]); |
| 3306 } | 3316 } |
| 3307 if (_json.containsKey("teacherGroupEmail")) { | 3317 if (_json.containsKey("teacherGroupEmail")) { |
| 3308 teacherGroupEmail = _json["teacherGroupEmail"]; | 3318 teacherGroupEmail = _json["teacherGroupEmail"]; |
| 3309 } | 3319 } |
| 3310 if (_json.containsKey("updateTime")) { | 3320 if (_json.containsKey("updateTime")) { |
| 3311 updateTime = _json["updateTime"]; | 3321 updateTime = _json["updateTime"]; |
| 3312 } | 3322 } |
| 3313 } | 3323 } |
| 3314 | 3324 |
| 3315 core.Map toJson() { | 3325 core.Map<core.String, core.Object> toJson() { |
| 3316 var _json = new core.Map(); | 3326 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 3317 if (alternateLink != null) { | 3327 if (alternateLink != null) { |
| 3318 _json["alternateLink"] = alternateLink; | 3328 _json["alternateLink"] = alternateLink; |
| 3319 } | 3329 } |
| 3330 if (calendarId != null) { |
| 3331 _json["calendarId"] = calendarId; |
| 3332 } |
| 3320 if (courseGroupEmail != null) { | 3333 if (courseGroupEmail != null) { |
| 3321 _json["courseGroupEmail"] = courseGroupEmail; | 3334 _json["courseGroupEmail"] = courseGroupEmail; |
| 3322 } | 3335 } |
| 3323 if (courseMaterialSets != null) { | 3336 if (courseMaterialSets != null) { |
| 3324 _json["courseMaterialSets"] = courseMaterialSets.map((value) => (value).to
Json()).toList(); | 3337 _json["courseMaterialSets"] = courseMaterialSets.map((value) => (value).to
Json()).toList(); |
| 3325 } | 3338 } |
| 3326 if (courseState != null) { | 3339 if (courseState != null) { |
| 3327 _json["courseState"] = courseState; | 3340 _json["courseState"] = courseState; |
| 3328 } | 3341 } |
| 3329 if (creationTime != null) { | 3342 if (creationTime != null) { |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3400 core.String alias; | 3413 core.String alias; |
| 3401 | 3414 |
| 3402 CourseAlias(); | 3415 CourseAlias(); |
| 3403 | 3416 |
| 3404 CourseAlias.fromJson(core.Map _json) { | 3417 CourseAlias.fromJson(core.Map _json) { |
| 3405 if (_json.containsKey("alias")) { | 3418 if (_json.containsKey("alias")) { |
| 3406 alias = _json["alias"]; | 3419 alias = _json["alias"]; |
| 3407 } | 3420 } |
| 3408 } | 3421 } |
| 3409 | 3422 |
| 3410 core.Map toJson() { | 3423 core.Map<core.String, core.Object> toJson() { |
| 3411 var _json = new core.Map(); | 3424 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 3412 if (alias != null) { | 3425 if (alias != null) { |
| 3413 _json["alias"] = alias; | 3426 _json["alias"] = alias; |
| 3414 } | 3427 } |
| 3415 return _json; | 3428 return _json; |
| 3416 } | 3429 } |
| 3417 } | 3430 } |
| 3418 | 3431 |
| 3419 /** A material attached to a course as part of a material set. */ | 3432 /** A material attached to a course as part of a material set. */ |
| 3420 class CourseMaterial { | 3433 class CourseMaterial { |
| 3421 /** Google Drive file attachment. */ | 3434 /** Google Drive file attachment. */ |
| (...skipping 15 matching lines...) Expand all Loading... |
| 3437 form = new Form.fromJson(_json["form"]); | 3450 form = new Form.fromJson(_json["form"]); |
| 3438 } | 3451 } |
| 3439 if (_json.containsKey("link")) { | 3452 if (_json.containsKey("link")) { |
| 3440 link = new Link.fromJson(_json["link"]); | 3453 link = new Link.fromJson(_json["link"]); |
| 3441 } | 3454 } |
| 3442 if (_json.containsKey("youTubeVideo")) { | 3455 if (_json.containsKey("youTubeVideo")) { |
| 3443 youTubeVideo = new YouTubeVideo.fromJson(_json["youTubeVideo"]); | 3456 youTubeVideo = new YouTubeVideo.fromJson(_json["youTubeVideo"]); |
| 3444 } | 3457 } |
| 3445 } | 3458 } |
| 3446 | 3459 |
| 3447 core.Map toJson() { | 3460 core.Map<core.String, core.Object> toJson() { |
| 3448 var _json = new core.Map(); | 3461 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 3449 if (driveFile != null) { | 3462 if (driveFile != null) { |
| 3450 _json["driveFile"] = (driveFile).toJson(); | 3463 _json["driveFile"] = (driveFile).toJson(); |
| 3451 } | 3464 } |
| 3452 if (form != null) { | 3465 if (form != null) { |
| 3453 _json["form"] = (form).toJson(); | 3466 _json["form"] = (form).toJson(); |
| 3454 } | 3467 } |
| 3455 if (link != null) { | 3468 if (link != null) { |
| 3456 _json["link"] = (link).toJson(); | 3469 _json["link"] = (link).toJson(); |
| 3457 } | 3470 } |
| 3458 if (youTubeVideo != null) { | 3471 if (youTubeVideo != null) { |
| (...skipping 18 matching lines...) Expand all Loading... |
| 3477 | 3490 |
| 3478 CourseMaterialSet.fromJson(core.Map _json) { | 3491 CourseMaterialSet.fromJson(core.Map _json) { |
| 3479 if (_json.containsKey("materials")) { | 3492 if (_json.containsKey("materials")) { |
| 3480 materials = _json["materials"].map((value) => new CourseMaterial.fromJson(
value)).toList(); | 3493 materials = _json["materials"].map((value) => new CourseMaterial.fromJson(
value)).toList(); |
| 3481 } | 3494 } |
| 3482 if (_json.containsKey("title")) { | 3495 if (_json.containsKey("title")) { |
| 3483 title = _json["title"]; | 3496 title = _json["title"]; |
| 3484 } | 3497 } |
| 3485 } | 3498 } |
| 3486 | 3499 |
| 3487 core.Map toJson() { | 3500 core.Map<core.String, core.Object> toJson() { |
| 3488 var _json = new core.Map(); | 3501 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 3489 if (materials != null) { | 3502 if (materials != null) { |
| 3490 _json["materials"] = materials.map((value) => (value).toJson()).toList(); | 3503 _json["materials"] = materials.map((value) => (value).toJson()).toList(); |
| 3491 } | 3504 } |
| 3492 if (title != null) { | 3505 if (title != null) { |
| 3493 _json["title"] = title; | 3506 _json["title"] = title; |
| 3494 } | 3507 } |
| 3495 return _json; | 3508 return _json; |
| 3496 } | 3509 } |
| 3497 } | 3510 } |
| 3498 | 3511 |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3571 core.double maxPoints; | 3584 core.double maxPoints; |
| 3572 /** | 3585 /** |
| 3573 * Multiple choice question details. | 3586 * Multiple choice question details. |
| 3574 * For read operations, this field is populated only when `work_type` is | 3587 * For read operations, this field is populated only when `work_type` is |
| 3575 * `MULTIPLE_CHOICE_QUESTION`. | 3588 * `MULTIPLE_CHOICE_QUESTION`. |
| 3576 * For write operations, this field must be specified when creating course | 3589 * For write operations, this field must be specified when creating course |
| 3577 * work with a `work_type` of `MULTIPLE_CHOICE_QUESTION`, and it must not be | 3590 * work with a `work_type` of `MULTIPLE_CHOICE_QUESTION`, and it must not be |
| 3578 * set otherwise. | 3591 * set otherwise. |
| 3579 */ | 3592 */ |
| 3580 MultipleChoiceQuestion multipleChoiceQuestion; | 3593 MultipleChoiceQuestion multipleChoiceQuestion; |
| 3594 /** Optional timestamp when this course work is scheduled to be published. */ |
| 3595 core.String scheduledTime; |
| 3581 /** | 3596 /** |
| 3582 * Status of this course work. | 3597 * Status of this course work. |
| 3583 * If unspecified, the default state is `DRAFT`. | 3598 * If unspecified, the default state is `DRAFT`. |
| 3584 * Possible string values are: | 3599 * Possible string values are: |
| 3585 * - "COURSE_WORK_STATE_UNSPECIFIED" : No state specified. This is never | 3600 * - "COURSE_WORK_STATE_UNSPECIFIED" : No state specified. This is never |
| 3586 * returned. | 3601 * returned. |
| 3587 * - "PUBLISHED" : Status for work that has been published. | 3602 * - "PUBLISHED" : Status for work that has been published. |
| 3588 * This is the default state. | 3603 * This is the default state. |
| 3589 * - "DRAFT" : Status for work that is not yet published. | 3604 * - "DRAFT" : Status for work that is not yet published. |
| 3590 * Work in this state is visible only to course teachers and domain | 3605 * Work in this state is visible only to course teachers and domain |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3663 } | 3678 } |
| 3664 if (_json.containsKey("materials")) { | 3679 if (_json.containsKey("materials")) { |
| 3665 materials = _json["materials"].map((value) => new Material.fromJson(value)
).toList(); | 3680 materials = _json["materials"].map((value) => new Material.fromJson(value)
).toList(); |
| 3666 } | 3681 } |
| 3667 if (_json.containsKey("maxPoints")) { | 3682 if (_json.containsKey("maxPoints")) { |
| 3668 maxPoints = _json["maxPoints"]; | 3683 maxPoints = _json["maxPoints"]; |
| 3669 } | 3684 } |
| 3670 if (_json.containsKey("multipleChoiceQuestion")) { | 3685 if (_json.containsKey("multipleChoiceQuestion")) { |
| 3671 multipleChoiceQuestion = new MultipleChoiceQuestion.fromJson(_json["multip
leChoiceQuestion"]); | 3686 multipleChoiceQuestion = new MultipleChoiceQuestion.fromJson(_json["multip
leChoiceQuestion"]); |
| 3672 } | 3687 } |
| 3688 if (_json.containsKey("scheduledTime")) { |
| 3689 scheduledTime = _json["scheduledTime"]; |
| 3690 } |
| 3673 if (_json.containsKey("state")) { | 3691 if (_json.containsKey("state")) { |
| 3674 state = _json["state"]; | 3692 state = _json["state"]; |
| 3675 } | 3693 } |
| 3676 if (_json.containsKey("submissionModificationMode")) { | 3694 if (_json.containsKey("submissionModificationMode")) { |
| 3677 submissionModificationMode = _json["submissionModificationMode"]; | 3695 submissionModificationMode = _json["submissionModificationMode"]; |
| 3678 } | 3696 } |
| 3679 if (_json.containsKey("title")) { | 3697 if (_json.containsKey("title")) { |
| 3680 title = _json["title"]; | 3698 title = _json["title"]; |
| 3681 } | 3699 } |
| 3682 if (_json.containsKey("updateTime")) { | 3700 if (_json.containsKey("updateTime")) { |
| 3683 updateTime = _json["updateTime"]; | 3701 updateTime = _json["updateTime"]; |
| 3684 } | 3702 } |
| 3685 if (_json.containsKey("workType")) { | 3703 if (_json.containsKey("workType")) { |
| 3686 workType = _json["workType"]; | 3704 workType = _json["workType"]; |
| 3687 } | 3705 } |
| 3688 } | 3706 } |
| 3689 | 3707 |
| 3690 core.Map toJson() { | 3708 core.Map<core.String, core.Object> toJson() { |
| 3691 var _json = new core.Map(); | 3709 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 3692 if (alternateLink != null) { | 3710 if (alternateLink != null) { |
| 3693 _json["alternateLink"] = alternateLink; | 3711 _json["alternateLink"] = alternateLink; |
| 3694 } | 3712 } |
| 3695 if (assignment != null) { | 3713 if (assignment != null) { |
| 3696 _json["assignment"] = (assignment).toJson(); | 3714 _json["assignment"] = (assignment).toJson(); |
| 3697 } | 3715 } |
| 3698 if (associatedWithDeveloper != null) { | 3716 if (associatedWithDeveloper != null) { |
| 3699 _json["associatedWithDeveloper"] = associatedWithDeveloper; | 3717 _json["associatedWithDeveloper"] = associatedWithDeveloper; |
| 3700 } | 3718 } |
| 3701 if (courseId != null) { | 3719 if (courseId != null) { |
| (...skipping 16 matching lines...) Expand all Loading... |
| 3718 } | 3736 } |
| 3719 if (materials != null) { | 3737 if (materials != null) { |
| 3720 _json["materials"] = materials.map((value) => (value).toJson()).toList(); | 3738 _json["materials"] = materials.map((value) => (value).toJson()).toList(); |
| 3721 } | 3739 } |
| 3722 if (maxPoints != null) { | 3740 if (maxPoints != null) { |
| 3723 _json["maxPoints"] = maxPoints; | 3741 _json["maxPoints"] = maxPoints; |
| 3724 } | 3742 } |
| 3725 if (multipleChoiceQuestion != null) { | 3743 if (multipleChoiceQuestion != null) { |
| 3726 _json["multipleChoiceQuestion"] = (multipleChoiceQuestion).toJson(); | 3744 _json["multipleChoiceQuestion"] = (multipleChoiceQuestion).toJson(); |
| 3727 } | 3745 } |
| 3746 if (scheduledTime != null) { |
| 3747 _json["scheduledTime"] = scheduledTime; |
| 3748 } |
| 3728 if (state != null) { | 3749 if (state != null) { |
| 3729 _json["state"] = state; | 3750 _json["state"] = state; |
| 3730 } | 3751 } |
| 3731 if (submissionModificationMode != null) { | 3752 if (submissionModificationMode != null) { |
| 3732 _json["submissionModificationMode"] = submissionModificationMode; | 3753 _json["submissionModificationMode"] = submissionModificationMode; |
| 3733 } | 3754 } |
| 3734 if (title != null) { | 3755 if (title != null) { |
| 3735 _json["title"] = title; | 3756 _json["title"] = title; |
| 3736 } | 3757 } |
| 3737 if (updateTime != null) { | 3758 if (updateTime != null) { |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3774 day = _json["day"]; | 3795 day = _json["day"]; |
| 3775 } | 3796 } |
| 3776 if (_json.containsKey("month")) { | 3797 if (_json.containsKey("month")) { |
| 3777 month = _json["month"]; | 3798 month = _json["month"]; |
| 3778 } | 3799 } |
| 3779 if (_json.containsKey("year")) { | 3800 if (_json.containsKey("year")) { |
| 3780 year = _json["year"]; | 3801 year = _json["year"]; |
| 3781 } | 3802 } |
| 3782 } | 3803 } |
| 3783 | 3804 |
| 3784 core.Map toJson() { | 3805 core.Map<core.String, core.Object> toJson() { |
| 3785 var _json = new core.Map(); | 3806 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 3786 if (day != null) { | 3807 if (day != null) { |
| 3787 _json["day"] = day; | 3808 _json["day"] = day; |
| 3788 } | 3809 } |
| 3789 if (month != null) { | 3810 if (month != null) { |
| 3790 _json["month"] = month; | 3811 _json["month"] = month; |
| 3791 } | 3812 } |
| 3792 if (year != null) { | 3813 if (year != null) { |
| 3793 _json["year"] = year; | 3814 _json["year"] = year; |
| 3794 } | 3815 } |
| 3795 return _json; | 3816 return _json; |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3829 id = _json["id"]; | 3850 id = _json["id"]; |
| 3830 } | 3851 } |
| 3831 if (_json.containsKey("thumbnailUrl")) { | 3852 if (_json.containsKey("thumbnailUrl")) { |
| 3832 thumbnailUrl = _json["thumbnailUrl"]; | 3853 thumbnailUrl = _json["thumbnailUrl"]; |
| 3833 } | 3854 } |
| 3834 if (_json.containsKey("title")) { | 3855 if (_json.containsKey("title")) { |
| 3835 title = _json["title"]; | 3856 title = _json["title"]; |
| 3836 } | 3857 } |
| 3837 } | 3858 } |
| 3838 | 3859 |
| 3839 core.Map toJson() { | 3860 core.Map<core.String, core.Object> toJson() { |
| 3840 var _json = new core.Map(); | 3861 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 3841 if (alternateLink != null) { | 3862 if (alternateLink != null) { |
| 3842 _json["alternateLink"] = alternateLink; | 3863 _json["alternateLink"] = alternateLink; |
| 3843 } | 3864 } |
| 3844 if (id != null) { | 3865 if (id != null) { |
| 3845 _json["id"] = id; | 3866 _json["id"] = id; |
| 3846 } | 3867 } |
| 3847 if (thumbnailUrl != null) { | 3868 if (thumbnailUrl != null) { |
| 3848 _json["thumbnailUrl"] = thumbnailUrl; | 3869 _json["thumbnailUrl"] = thumbnailUrl; |
| 3849 } | 3870 } |
| 3850 if (title != null) { | 3871 if (title != null) { |
| (...skipping 27 matching lines...) Expand all Loading... |
| 3878 alternateLink = _json["alternateLink"]; | 3899 alternateLink = _json["alternateLink"]; |
| 3879 } | 3900 } |
| 3880 if (_json.containsKey("id")) { | 3901 if (_json.containsKey("id")) { |
| 3881 id = _json["id"]; | 3902 id = _json["id"]; |
| 3882 } | 3903 } |
| 3883 if (_json.containsKey("title")) { | 3904 if (_json.containsKey("title")) { |
| 3884 title = _json["title"]; | 3905 title = _json["title"]; |
| 3885 } | 3906 } |
| 3886 } | 3907 } |
| 3887 | 3908 |
| 3888 core.Map toJson() { | 3909 core.Map<core.String, core.Object> toJson() { |
| 3889 var _json = new core.Map(); | 3910 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 3890 if (alternateLink != null) { | 3911 if (alternateLink != null) { |
| 3891 _json["alternateLink"] = alternateLink; | 3912 _json["alternateLink"] = alternateLink; |
| 3892 } | 3913 } |
| 3893 if (id != null) { | 3914 if (id != null) { |
| 3894 _json["id"] = id; | 3915 _json["id"] = id; |
| 3895 } | 3916 } |
| 3896 if (title != null) { | 3917 if (title != null) { |
| 3897 _json["title"] = title; | 3918 _json["title"] = title; |
| 3898 } | 3919 } |
| 3899 return _json; | 3920 return _json; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 3911 * | 3932 * |
| 3912 * The JSON representation for `Empty` is empty JSON object `{}`. | 3933 * The JSON representation for `Empty` is empty JSON object `{}`. |
| 3913 */ | 3934 */ |
| 3914 class Empty { | 3935 class Empty { |
| 3915 | 3936 |
| 3916 Empty(); | 3937 Empty(); |
| 3917 | 3938 |
| 3918 Empty.fromJson(core.Map _json) { | 3939 Empty.fromJson(core.Map _json) { |
| 3919 } | 3940 } |
| 3920 | 3941 |
| 3921 core.Map toJson() { | 3942 core.Map<core.String, core.Object> toJson() { |
| 3922 var _json = new core.Map(); | 3943 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 3923 return _json; | 3944 return _json; |
| 3924 } | 3945 } |
| 3925 } | 3946 } |
| 3926 | 3947 |
| 3927 /** Google Forms item. */ | 3948 /** Google Forms item. */ |
| 3928 class Form { | 3949 class Form { |
| 3929 /** URL of the form. */ | 3950 /** URL of the form. */ |
| 3930 core.String formUrl; | 3951 core.String formUrl; |
| 3931 /** | 3952 /** |
| 3932 * URL of the form responses document. | 3953 * URL of the form responses document. |
| (...skipping 26 matching lines...) Expand all Loading... |
| 3959 responseUrl = _json["responseUrl"]; | 3980 responseUrl = _json["responseUrl"]; |
| 3960 } | 3981 } |
| 3961 if (_json.containsKey("thumbnailUrl")) { | 3982 if (_json.containsKey("thumbnailUrl")) { |
| 3962 thumbnailUrl = _json["thumbnailUrl"]; | 3983 thumbnailUrl = _json["thumbnailUrl"]; |
| 3963 } | 3984 } |
| 3964 if (_json.containsKey("title")) { | 3985 if (_json.containsKey("title")) { |
| 3965 title = _json["title"]; | 3986 title = _json["title"]; |
| 3966 } | 3987 } |
| 3967 } | 3988 } |
| 3968 | 3989 |
| 3969 core.Map toJson() { | 3990 core.Map<core.String, core.Object> toJson() { |
| 3970 var _json = new core.Map(); | 3991 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 3971 if (formUrl != null) { | 3992 if (formUrl != null) { |
| 3972 _json["formUrl"] = formUrl; | 3993 _json["formUrl"] = formUrl; |
| 3973 } | 3994 } |
| 3974 if (responseUrl != null) { | 3995 if (responseUrl != null) { |
| 3975 _json["responseUrl"] = responseUrl; | 3996 _json["responseUrl"] = responseUrl; |
| 3976 } | 3997 } |
| 3977 if (thumbnailUrl != null) { | 3998 if (thumbnailUrl != null) { |
| 3978 _json["thumbnailUrl"] = thumbnailUrl; | 3999 _json["thumbnailUrl"] = thumbnailUrl; |
| 3979 } | 4000 } |
| 3980 if (title != null) { | 4001 if (title != null) { |
| (...skipping 16 matching lines...) Expand all Loading... |
| 3997 core.String permission; | 4018 core.String permission; |
| 3998 | 4019 |
| 3999 GlobalPermission(); | 4020 GlobalPermission(); |
| 4000 | 4021 |
| 4001 GlobalPermission.fromJson(core.Map _json) { | 4022 GlobalPermission.fromJson(core.Map _json) { |
| 4002 if (_json.containsKey("permission")) { | 4023 if (_json.containsKey("permission")) { |
| 4003 permission = _json["permission"]; | 4024 permission = _json["permission"]; |
| 4004 } | 4025 } |
| 4005 } | 4026 } |
| 4006 | 4027 |
| 4007 core.Map toJson() { | 4028 core.Map<core.String, core.Object> toJson() { |
| 4008 var _json = new core.Map(); | 4029 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 4009 if (permission != null) { | 4030 if (permission != null) { |
| 4010 _json["permission"] = permission; | 4031 _json["permission"] = permission; |
| 4011 } | 4032 } |
| 4012 return _json; | 4033 return _json; |
| 4013 } | 4034 } |
| 4014 } | 4035 } |
| 4015 | 4036 |
| 4016 /** | 4037 /** |
| 4017 * Association between a student and a guardian of that student. The guardian | 4038 * Association between a student and a guardian of that student. The guardian |
| 4018 * may receive information about the student's course work. | 4039 * may receive information about the student's course work. |
| (...skipping 21 matching lines...) Expand all Loading... |
| 4040 guardianProfile = new UserProfile.fromJson(_json["guardianProfile"]); | 4061 guardianProfile = new UserProfile.fromJson(_json["guardianProfile"]); |
| 4041 } | 4062 } |
| 4042 if (_json.containsKey("invitedEmailAddress")) { | 4063 if (_json.containsKey("invitedEmailAddress")) { |
| 4043 invitedEmailAddress = _json["invitedEmailAddress"]; | 4064 invitedEmailAddress = _json["invitedEmailAddress"]; |
| 4044 } | 4065 } |
| 4045 if (_json.containsKey("studentId")) { | 4066 if (_json.containsKey("studentId")) { |
| 4046 studentId = _json["studentId"]; | 4067 studentId = _json["studentId"]; |
| 4047 } | 4068 } |
| 4048 } | 4069 } |
| 4049 | 4070 |
| 4050 core.Map toJson() { | 4071 core.Map<core.String, core.Object> toJson() { |
| 4051 var _json = new core.Map(); | 4072 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 4052 if (guardianId != null) { | 4073 if (guardianId != null) { |
| 4053 _json["guardianId"] = guardianId; | 4074 _json["guardianId"] = guardianId; |
| 4054 } | 4075 } |
| 4055 if (guardianProfile != null) { | 4076 if (guardianProfile != null) { |
| 4056 _json["guardianProfile"] = (guardianProfile).toJson(); | 4077 _json["guardianProfile"] = (guardianProfile).toJson(); |
| 4057 } | 4078 } |
| 4058 if (invitedEmailAddress != null) { | 4079 if (invitedEmailAddress != null) { |
| 4059 _json["invitedEmailAddress"] = invitedEmailAddress; | 4080 _json["invitedEmailAddress"] = invitedEmailAddress; |
| 4060 } | 4081 } |
| 4061 if (studentId != null) { | 4082 if (studentId != null) { |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4113 invitedEmailAddress = _json["invitedEmailAddress"]; | 4134 invitedEmailAddress = _json["invitedEmailAddress"]; |
| 4114 } | 4135 } |
| 4115 if (_json.containsKey("state")) { | 4136 if (_json.containsKey("state")) { |
| 4116 state = _json["state"]; | 4137 state = _json["state"]; |
| 4117 } | 4138 } |
| 4118 if (_json.containsKey("studentId")) { | 4139 if (_json.containsKey("studentId")) { |
| 4119 studentId = _json["studentId"]; | 4140 studentId = _json["studentId"]; |
| 4120 } | 4141 } |
| 4121 } | 4142 } |
| 4122 | 4143 |
| 4123 core.Map toJson() { | 4144 core.Map<core.String, core.Object> toJson() { |
| 4124 var _json = new core.Map(); | 4145 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 4125 if (creationTime != null) { | 4146 if (creationTime != null) { |
| 4126 _json["creationTime"] = creationTime; | 4147 _json["creationTime"] = creationTime; |
| 4127 } | 4148 } |
| 4128 if (invitationId != null) { | 4149 if (invitationId != null) { |
| 4129 _json["invitationId"] = invitationId; | 4150 _json["invitationId"] = invitationId; |
| 4130 } | 4151 } |
| 4131 if (invitedEmailAddress != null) { | 4152 if (invitedEmailAddress != null) { |
| 4132 _json["invitedEmailAddress"] = invitedEmailAddress; | 4153 _json["invitedEmailAddress"] = invitedEmailAddress; |
| 4133 } | 4154 } |
| 4134 if (state != null) { | 4155 if (state != null) { |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4182 id = _json["id"]; | 4203 id = _json["id"]; |
| 4183 } | 4204 } |
| 4184 if (_json.containsKey("role")) { | 4205 if (_json.containsKey("role")) { |
| 4185 role = _json["role"]; | 4206 role = _json["role"]; |
| 4186 } | 4207 } |
| 4187 if (_json.containsKey("userId")) { | 4208 if (_json.containsKey("userId")) { |
| 4188 userId = _json["userId"]; | 4209 userId = _json["userId"]; |
| 4189 } | 4210 } |
| 4190 } | 4211 } |
| 4191 | 4212 |
| 4192 core.Map toJson() { | 4213 core.Map<core.String, core.Object> toJson() { |
| 4193 var _json = new core.Map(); | 4214 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 4194 if (courseId != null) { | 4215 if (courseId != null) { |
| 4195 _json["courseId"] = courseId; | 4216 _json["courseId"] = courseId; |
| 4196 } | 4217 } |
| 4197 if (id != null) { | 4218 if (id != null) { |
| 4198 _json["id"] = id; | 4219 _json["id"] = id; |
| 4199 } | 4220 } |
| 4200 if (role != null) { | 4221 if (role != null) { |
| 4201 _json["role"] = role; | 4222 _json["role"] = role; |
| 4202 } | 4223 } |
| 4203 if (userId != null) { | 4224 if (userId != null) { |
| (...skipping 30 matching lines...) Expand all Loading... |
| 4234 thumbnailUrl = _json["thumbnailUrl"]; | 4255 thumbnailUrl = _json["thumbnailUrl"]; |
| 4235 } | 4256 } |
| 4236 if (_json.containsKey("title")) { | 4257 if (_json.containsKey("title")) { |
| 4237 title = _json["title"]; | 4258 title = _json["title"]; |
| 4238 } | 4259 } |
| 4239 if (_json.containsKey("url")) { | 4260 if (_json.containsKey("url")) { |
| 4240 url = _json["url"]; | 4261 url = _json["url"]; |
| 4241 } | 4262 } |
| 4242 } | 4263 } |
| 4243 | 4264 |
| 4244 core.Map toJson() { | 4265 core.Map<core.String, core.Object> toJson() { |
| 4245 var _json = new core.Map(); | 4266 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 4246 if (thumbnailUrl != null) { | 4267 if (thumbnailUrl != null) { |
| 4247 _json["thumbnailUrl"] = thumbnailUrl; | 4268 _json["thumbnailUrl"] = thumbnailUrl; |
| 4248 } | 4269 } |
| 4249 if (title != null) { | 4270 if (title != null) { |
| 4250 _json["title"] = title; | 4271 _json["title"] = title; |
| 4251 } | 4272 } |
| 4252 if (url != null) { | 4273 if (url != null) { |
| 4253 _json["url"] = url; | 4274 _json["url"] = url; |
| 4254 } | 4275 } |
| 4255 return _json; | 4276 return _json; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 4270 | 4291 |
| 4271 ListCourseAliasesResponse.fromJson(core.Map _json) { | 4292 ListCourseAliasesResponse.fromJson(core.Map _json) { |
| 4272 if (_json.containsKey("aliases")) { | 4293 if (_json.containsKey("aliases")) { |
| 4273 aliases = _json["aliases"].map((value) => new CourseAlias.fromJson(value))
.toList(); | 4294 aliases = _json["aliases"].map((value) => new CourseAlias.fromJson(value))
.toList(); |
| 4274 } | 4295 } |
| 4275 if (_json.containsKey("nextPageToken")) { | 4296 if (_json.containsKey("nextPageToken")) { |
| 4276 nextPageToken = _json["nextPageToken"]; | 4297 nextPageToken = _json["nextPageToken"]; |
| 4277 } | 4298 } |
| 4278 } | 4299 } |
| 4279 | 4300 |
| 4280 core.Map toJson() { | 4301 core.Map<core.String, core.Object> toJson() { |
| 4281 var _json = new core.Map(); | 4302 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 4282 if (aliases != null) { | 4303 if (aliases != null) { |
| 4283 _json["aliases"] = aliases.map((value) => (value).toJson()).toList(); | 4304 _json["aliases"] = aliases.map((value) => (value).toJson()).toList(); |
| 4284 } | 4305 } |
| 4285 if (nextPageToken != null) { | 4306 if (nextPageToken != null) { |
| 4286 _json["nextPageToken"] = nextPageToken; | 4307 _json["nextPageToken"] = nextPageToken; |
| 4287 } | 4308 } |
| 4288 return _json; | 4309 return _json; |
| 4289 } | 4310 } |
| 4290 } | 4311 } |
| 4291 | 4312 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 4303 | 4324 |
| 4304 ListCourseWorkResponse.fromJson(core.Map _json) { | 4325 ListCourseWorkResponse.fromJson(core.Map _json) { |
| 4305 if (_json.containsKey("courseWork")) { | 4326 if (_json.containsKey("courseWork")) { |
| 4306 courseWork = _json["courseWork"].map((value) => new CourseWork.fromJson(va
lue)).toList(); | 4327 courseWork = _json["courseWork"].map((value) => new CourseWork.fromJson(va
lue)).toList(); |
| 4307 } | 4328 } |
| 4308 if (_json.containsKey("nextPageToken")) { | 4329 if (_json.containsKey("nextPageToken")) { |
| 4309 nextPageToken = _json["nextPageToken"]; | 4330 nextPageToken = _json["nextPageToken"]; |
| 4310 } | 4331 } |
| 4311 } | 4332 } |
| 4312 | 4333 |
| 4313 core.Map toJson() { | 4334 core.Map<core.String, core.Object> toJson() { |
| 4314 var _json = new core.Map(); | 4335 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 4315 if (courseWork != null) { | 4336 if (courseWork != null) { |
| 4316 _json["courseWork"] = courseWork.map((value) => (value).toJson()).toList()
; | 4337 _json["courseWork"] = courseWork.map((value) => (value).toJson()).toList()
; |
| 4317 } | 4338 } |
| 4318 if (nextPageToken != null) { | 4339 if (nextPageToken != null) { |
| 4319 _json["nextPageToken"] = nextPageToken; | 4340 _json["nextPageToken"] = nextPageToken; |
| 4320 } | 4341 } |
| 4321 return _json; | 4342 return _json; |
| 4322 } | 4343 } |
| 4323 } | 4344 } |
| 4324 | 4345 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 4336 | 4357 |
| 4337 ListCoursesResponse.fromJson(core.Map _json) { | 4358 ListCoursesResponse.fromJson(core.Map _json) { |
| 4338 if (_json.containsKey("courses")) { | 4359 if (_json.containsKey("courses")) { |
| 4339 courses = _json["courses"].map((value) => new Course.fromJson(value)).toLi
st(); | 4360 courses = _json["courses"].map((value) => new Course.fromJson(value)).toLi
st(); |
| 4340 } | 4361 } |
| 4341 if (_json.containsKey("nextPageToken")) { | 4362 if (_json.containsKey("nextPageToken")) { |
| 4342 nextPageToken = _json["nextPageToken"]; | 4363 nextPageToken = _json["nextPageToken"]; |
| 4343 } | 4364 } |
| 4344 } | 4365 } |
| 4345 | 4366 |
| 4346 core.Map toJson() { | 4367 core.Map<core.String, core.Object> toJson() { |
| 4347 var _json = new core.Map(); | 4368 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 4348 if (courses != null) { | 4369 if (courses != null) { |
| 4349 _json["courses"] = courses.map((value) => (value).toJson()).toList(); | 4370 _json["courses"] = courses.map((value) => (value).toJson()).toList(); |
| 4350 } | 4371 } |
| 4351 if (nextPageToken != null) { | 4372 if (nextPageToken != null) { |
| 4352 _json["nextPageToken"] = nextPageToken; | 4373 _json["nextPageToken"] = nextPageToken; |
| 4353 } | 4374 } |
| 4354 return _json; | 4375 return _json; |
| 4355 } | 4376 } |
| 4356 } | 4377 } |
| 4357 | 4378 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 4369 | 4390 |
| 4370 ListGuardianInvitationsResponse.fromJson(core.Map _json) { | 4391 ListGuardianInvitationsResponse.fromJson(core.Map _json) { |
| 4371 if (_json.containsKey("guardianInvitations")) { | 4392 if (_json.containsKey("guardianInvitations")) { |
| 4372 guardianInvitations = _json["guardianInvitations"].map((value) => new Guar
dianInvitation.fromJson(value)).toList(); | 4393 guardianInvitations = _json["guardianInvitations"].map((value) => new Guar
dianInvitation.fromJson(value)).toList(); |
| 4373 } | 4394 } |
| 4374 if (_json.containsKey("nextPageToken")) { | 4395 if (_json.containsKey("nextPageToken")) { |
| 4375 nextPageToken = _json["nextPageToken"]; | 4396 nextPageToken = _json["nextPageToken"]; |
| 4376 } | 4397 } |
| 4377 } | 4398 } |
| 4378 | 4399 |
| 4379 core.Map toJson() { | 4400 core.Map<core.String, core.Object> toJson() { |
| 4380 var _json = new core.Map(); | 4401 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 4381 if (guardianInvitations != null) { | 4402 if (guardianInvitations != null) { |
| 4382 _json["guardianInvitations"] = guardianInvitations.map((value) => (value).
toJson()).toList(); | 4403 _json["guardianInvitations"] = guardianInvitations.map((value) => (value).
toJson()).toList(); |
| 4383 } | 4404 } |
| 4384 if (nextPageToken != null) { | 4405 if (nextPageToken != null) { |
| 4385 _json["nextPageToken"] = nextPageToken; | 4406 _json["nextPageToken"] = nextPageToken; |
| 4386 } | 4407 } |
| 4387 return _json; | 4408 return _json; |
| 4388 } | 4409 } |
| 4389 } | 4410 } |
| 4390 | 4411 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 4405 | 4426 |
| 4406 ListGuardiansResponse.fromJson(core.Map _json) { | 4427 ListGuardiansResponse.fromJson(core.Map _json) { |
| 4407 if (_json.containsKey("guardians")) { | 4428 if (_json.containsKey("guardians")) { |
| 4408 guardians = _json["guardians"].map((value) => new Guardian.fromJson(value)
).toList(); | 4429 guardians = _json["guardians"].map((value) => new Guardian.fromJson(value)
).toList(); |
| 4409 } | 4430 } |
| 4410 if (_json.containsKey("nextPageToken")) { | 4431 if (_json.containsKey("nextPageToken")) { |
| 4411 nextPageToken = _json["nextPageToken"]; | 4432 nextPageToken = _json["nextPageToken"]; |
| 4412 } | 4433 } |
| 4413 } | 4434 } |
| 4414 | 4435 |
| 4415 core.Map toJson() { | 4436 core.Map<core.String, core.Object> toJson() { |
| 4416 var _json = new core.Map(); | 4437 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 4417 if (guardians != null) { | 4438 if (guardians != null) { |
| 4418 _json["guardians"] = guardians.map((value) => (value).toJson()).toList(); | 4439 _json["guardians"] = guardians.map((value) => (value).toJson()).toList(); |
| 4419 } | 4440 } |
| 4420 if (nextPageToken != null) { | 4441 if (nextPageToken != null) { |
| 4421 _json["nextPageToken"] = nextPageToken; | 4442 _json["nextPageToken"] = nextPageToken; |
| 4422 } | 4443 } |
| 4423 return _json; | 4444 return _json; |
| 4424 } | 4445 } |
| 4425 } | 4446 } |
| 4426 | 4447 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 4438 | 4459 |
| 4439 ListInvitationsResponse.fromJson(core.Map _json) { | 4460 ListInvitationsResponse.fromJson(core.Map _json) { |
| 4440 if (_json.containsKey("invitations")) { | 4461 if (_json.containsKey("invitations")) { |
| 4441 invitations = _json["invitations"].map((value) => new Invitation.fromJson(
value)).toList(); | 4462 invitations = _json["invitations"].map((value) => new Invitation.fromJson(
value)).toList(); |
| 4442 } | 4463 } |
| 4443 if (_json.containsKey("nextPageToken")) { | 4464 if (_json.containsKey("nextPageToken")) { |
| 4444 nextPageToken = _json["nextPageToken"]; | 4465 nextPageToken = _json["nextPageToken"]; |
| 4445 } | 4466 } |
| 4446 } | 4467 } |
| 4447 | 4468 |
| 4448 core.Map toJson() { | 4469 core.Map<core.String, core.Object> toJson() { |
| 4449 var _json = new core.Map(); | 4470 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 4450 if (invitations != null) { | 4471 if (invitations != null) { |
| 4451 _json["invitations"] = invitations.map((value) => (value).toJson()).toList
(); | 4472 _json["invitations"] = invitations.map((value) => (value).toJson()).toList
(); |
| 4452 } | 4473 } |
| 4453 if (nextPageToken != null) { | 4474 if (nextPageToken != null) { |
| 4454 _json["nextPageToken"] = nextPageToken; | 4475 _json["nextPageToken"] = nextPageToken; |
| 4455 } | 4476 } |
| 4456 return _json; | 4477 return _json; |
| 4457 } | 4478 } |
| 4458 } | 4479 } |
| 4459 | 4480 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 4471 | 4492 |
| 4472 ListStudentSubmissionsResponse.fromJson(core.Map _json) { | 4493 ListStudentSubmissionsResponse.fromJson(core.Map _json) { |
| 4473 if (_json.containsKey("nextPageToken")) { | 4494 if (_json.containsKey("nextPageToken")) { |
| 4474 nextPageToken = _json["nextPageToken"]; | 4495 nextPageToken = _json["nextPageToken"]; |
| 4475 } | 4496 } |
| 4476 if (_json.containsKey("studentSubmissions")) { | 4497 if (_json.containsKey("studentSubmissions")) { |
| 4477 studentSubmissions = _json["studentSubmissions"].map((value) => new Studen
tSubmission.fromJson(value)).toList(); | 4498 studentSubmissions = _json["studentSubmissions"].map((value) => new Studen
tSubmission.fromJson(value)).toList(); |
| 4478 } | 4499 } |
| 4479 } | 4500 } |
| 4480 | 4501 |
| 4481 core.Map toJson() { | 4502 core.Map<core.String, core.Object> toJson() { |
| 4482 var _json = new core.Map(); | 4503 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 4483 if (nextPageToken != null) { | 4504 if (nextPageToken != null) { |
| 4484 _json["nextPageToken"] = nextPageToken; | 4505 _json["nextPageToken"] = nextPageToken; |
| 4485 } | 4506 } |
| 4486 if (studentSubmissions != null) { | 4507 if (studentSubmissions != null) { |
| 4487 _json["studentSubmissions"] = studentSubmissions.map((value) => (value).to
Json()).toList(); | 4508 _json["studentSubmissions"] = studentSubmissions.map((value) => (value).to
Json()).toList(); |
| 4488 } | 4509 } |
| 4489 return _json; | 4510 return _json; |
| 4490 } | 4511 } |
| 4491 } | 4512 } |
| 4492 | 4513 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 4504 | 4525 |
| 4505 ListStudentsResponse.fromJson(core.Map _json) { | 4526 ListStudentsResponse.fromJson(core.Map _json) { |
| 4506 if (_json.containsKey("nextPageToken")) { | 4527 if (_json.containsKey("nextPageToken")) { |
| 4507 nextPageToken = _json["nextPageToken"]; | 4528 nextPageToken = _json["nextPageToken"]; |
| 4508 } | 4529 } |
| 4509 if (_json.containsKey("students")) { | 4530 if (_json.containsKey("students")) { |
| 4510 students = _json["students"].map((value) => new Student.fromJson(value)).t
oList(); | 4531 students = _json["students"].map((value) => new Student.fromJson(value)).t
oList(); |
| 4511 } | 4532 } |
| 4512 } | 4533 } |
| 4513 | 4534 |
| 4514 core.Map toJson() { | 4535 core.Map<core.String, core.Object> toJson() { |
| 4515 var _json = new core.Map(); | 4536 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 4516 if (nextPageToken != null) { | 4537 if (nextPageToken != null) { |
| 4517 _json["nextPageToken"] = nextPageToken; | 4538 _json["nextPageToken"] = nextPageToken; |
| 4518 } | 4539 } |
| 4519 if (students != null) { | 4540 if (students != null) { |
| 4520 _json["students"] = students.map((value) => (value).toJson()).toList(); | 4541 _json["students"] = students.map((value) => (value).toJson()).toList(); |
| 4521 } | 4542 } |
| 4522 return _json; | 4543 return _json; |
| 4523 } | 4544 } |
| 4524 } | 4545 } |
| 4525 | 4546 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 4537 | 4558 |
| 4538 ListTeachersResponse.fromJson(core.Map _json) { | 4559 ListTeachersResponse.fromJson(core.Map _json) { |
| 4539 if (_json.containsKey("nextPageToken")) { | 4560 if (_json.containsKey("nextPageToken")) { |
| 4540 nextPageToken = _json["nextPageToken"]; | 4561 nextPageToken = _json["nextPageToken"]; |
| 4541 } | 4562 } |
| 4542 if (_json.containsKey("teachers")) { | 4563 if (_json.containsKey("teachers")) { |
| 4543 teachers = _json["teachers"].map((value) => new Teacher.fromJson(value)).t
oList(); | 4564 teachers = _json["teachers"].map((value) => new Teacher.fromJson(value)).t
oList(); |
| 4544 } | 4565 } |
| 4545 } | 4566 } |
| 4546 | 4567 |
| 4547 core.Map toJson() { | 4568 core.Map<core.String, core.Object> toJson() { |
| 4548 var _json = new core.Map(); | 4569 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 4549 if (nextPageToken != null) { | 4570 if (nextPageToken != null) { |
| 4550 _json["nextPageToken"] = nextPageToken; | 4571 _json["nextPageToken"] = nextPageToken; |
| 4551 } | 4572 } |
| 4552 if (teachers != null) { | 4573 if (teachers != null) { |
| 4553 _json["teachers"] = teachers.map((value) => (value).toJson()).toList(); | 4574 _json["teachers"] = teachers.map((value) => (value).toJson()).toList(); |
| 4554 } | 4575 } |
| 4555 return _json; | 4576 return _json; |
| 4556 } | 4577 } |
| 4557 } | 4578 } |
| 4558 | 4579 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 4584 form = new Form.fromJson(_json["form"]); | 4605 form = new Form.fromJson(_json["form"]); |
| 4585 } | 4606 } |
| 4586 if (_json.containsKey("link")) { | 4607 if (_json.containsKey("link")) { |
| 4587 link = new Link.fromJson(_json["link"]); | 4608 link = new Link.fromJson(_json["link"]); |
| 4588 } | 4609 } |
| 4589 if (_json.containsKey("youtubeVideo")) { | 4610 if (_json.containsKey("youtubeVideo")) { |
| 4590 youtubeVideo = new YouTubeVideo.fromJson(_json["youtubeVideo"]); | 4611 youtubeVideo = new YouTubeVideo.fromJson(_json["youtubeVideo"]); |
| 4591 } | 4612 } |
| 4592 } | 4613 } |
| 4593 | 4614 |
| 4594 core.Map toJson() { | 4615 core.Map<core.String, core.Object> toJson() { |
| 4595 var _json = new core.Map(); | 4616 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 4596 if (driveFile != null) { | 4617 if (driveFile != null) { |
| 4597 _json["driveFile"] = (driveFile).toJson(); | 4618 _json["driveFile"] = (driveFile).toJson(); |
| 4598 } | 4619 } |
| 4599 if (form != null) { | 4620 if (form != null) { |
| 4600 _json["form"] = (form).toJson(); | 4621 _json["form"] = (form).toJson(); |
| 4601 } | 4622 } |
| 4602 if (link != null) { | 4623 if (link != null) { |
| 4603 _json["link"] = (link).toJson(); | 4624 _json["link"] = (link).toJson(); |
| 4604 } | 4625 } |
| 4605 if (youtubeVideo != null) { | 4626 if (youtubeVideo != null) { |
| (...skipping 14 matching lines...) Expand all Loading... |
| 4620 core.List<Attachment> addAttachments; | 4641 core.List<Attachment> addAttachments; |
| 4621 | 4642 |
| 4622 ModifyAttachmentsRequest(); | 4643 ModifyAttachmentsRequest(); |
| 4623 | 4644 |
| 4624 ModifyAttachmentsRequest.fromJson(core.Map _json) { | 4645 ModifyAttachmentsRequest.fromJson(core.Map _json) { |
| 4625 if (_json.containsKey("addAttachments")) { | 4646 if (_json.containsKey("addAttachments")) { |
| 4626 addAttachments = _json["addAttachments"].map((value) => new Attachment.fro
mJson(value)).toList(); | 4647 addAttachments = _json["addAttachments"].map((value) => new Attachment.fro
mJson(value)).toList(); |
| 4627 } | 4648 } |
| 4628 } | 4649 } |
| 4629 | 4650 |
| 4630 core.Map toJson() { | 4651 core.Map<core.String, core.Object> toJson() { |
| 4631 var _json = new core.Map(); | 4652 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 4632 if (addAttachments != null) { | 4653 if (addAttachments != null) { |
| 4633 _json["addAttachments"] = addAttachments.map((value) => (value).toJson()).
toList(); | 4654 _json["addAttachments"] = addAttachments.map((value) => (value).toJson()).
toList(); |
| 4634 } | 4655 } |
| 4635 return _json; | 4656 return _json; |
| 4636 } | 4657 } |
| 4637 } | 4658 } |
| 4638 | 4659 |
| 4639 /** Additional details for multiple-choice questions. */ | 4660 /** Additional details for multiple-choice questions. */ |
| 4640 class MultipleChoiceQuestion { | 4661 class MultipleChoiceQuestion { |
| 4641 /** Possible choices. */ | 4662 /** Possible choices. */ |
| 4642 core.List<core.String> choices; | 4663 core.List<core.String> choices; |
| 4643 | 4664 |
| 4644 MultipleChoiceQuestion(); | 4665 MultipleChoiceQuestion(); |
| 4645 | 4666 |
| 4646 MultipleChoiceQuestion.fromJson(core.Map _json) { | 4667 MultipleChoiceQuestion.fromJson(core.Map _json) { |
| 4647 if (_json.containsKey("choices")) { | 4668 if (_json.containsKey("choices")) { |
| 4648 choices = _json["choices"]; | 4669 choices = _json["choices"]; |
| 4649 } | 4670 } |
| 4650 } | 4671 } |
| 4651 | 4672 |
| 4652 core.Map toJson() { | 4673 core.Map<core.String, core.Object> toJson() { |
| 4653 var _json = new core.Map(); | 4674 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 4654 if (choices != null) { | 4675 if (choices != null) { |
| 4655 _json["choices"] = choices; | 4676 _json["choices"] = choices; |
| 4656 } | 4677 } |
| 4657 return _json; | 4678 return _json; |
| 4658 } | 4679 } |
| 4659 } | 4680 } |
| 4660 | 4681 |
| 4661 /** Student work for a multiple-choice question. */ | 4682 /** Student work for a multiple-choice question. */ |
| 4662 class MultipleChoiceSubmission { | 4683 class MultipleChoiceSubmission { |
| 4663 /** Student's select choice. */ | 4684 /** Student's select choice. */ |
| 4664 core.String answer; | 4685 core.String answer; |
| 4665 | 4686 |
| 4666 MultipleChoiceSubmission(); | 4687 MultipleChoiceSubmission(); |
| 4667 | 4688 |
| 4668 MultipleChoiceSubmission.fromJson(core.Map _json) { | 4689 MultipleChoiceSubmission.fromJson(core.Map _json) { |
| 4669 if (_json.containsKey("answer")) { | 4690 if (_json.containsKey("answer")) { |
| 4670 answer = _json["answer"]; | 4691 answer = _json["answer"]; |
| 4671 } | 4692 } |
| 4672 } | 4693 } |
| 4673 | 4694 |
| 4674 core.Map toJson() { | 4695 core.Map<core.String, core.Object> toJson() { |
| 4675 var _json = new core.Map(); | 4696 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 4676 if (answer != null) { | 4697 if (answer != null) { |
| 4677 _json["answer"] = answer; | 4698 _json["answer"] = answer; |
| 4678 } | 4699 } |
| 4679 return _json; | 4700 return _json; |
| 4680 } | 4701 } |
| 4681 } | 4702 } |
| 4682 | 4703 |
| 4683 /** Details of the user's name. */ | 4704 /** Details of the user's name. */ |
| 4684 class Name { | 4705 class Name { |
| 4685 /** | 4706 /** |
| (...skipping 23 matching lines...) Expand all Loading... |
| 4709 familyName = _json["familyName"]; | 4730 familyName = _json["familyName"]; |
| 4710 } | 4731 } |
| 4711 if (_json.containsKey("fullName")) { | 4732 if (_json.containsKey("fullName")) { |
| 4712 fullName = _json["fullName"]; | 4733 fullName = _json["fullName"]; |
| 4713 } | 4734 } |
| 4714 if (_json.containsKey("givenName")) { | 4735 if (_json.containsKey("givenName")) { |
| 4715 givenName = _json["givenName"]; | 4736 givenName = _json["givenName"]; |
| 4716 } | 4737 } |
| 4717 } | 4738 } |
| 4718 | 4739 |
| 4719 core.Map toJson() { | 4740 core.Map<core.String, core.Object> toJson() { |
| 4720 var _json = new core.Map(); | 4741 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 4721 if (familyName != null) { | 4742 if (familyName != null) { |
| 4722 _json["familyName"] = familyName; | 4743 _json["familyName"] = familyName; |
| 4723 } | 4744 } |
| 4724 if (fullName != null) { | 4745 if (fullName != null) { |
| 4725 _json["fullName"] = fullName; | 4746 _json["fullName"] = fullName; |
| 4726 } | 4747 } |
| 4727 if (givenName != null) { | 4748 if (givenName != null) { |
| 4728 _json["givenName"] = givenName; | 4749 _json["givenName"] = givenName; |
| 4729 } | 4750 } |
| 4730 return _json; | 4751 return _json; |
| 4731 } | 4752 } |
| 4732 } | 4753 } |
| 4733 | 4754 |
| 4734 /** Request to reclaim a student submission. */ | 4755 /** Request to reclaim a student submission. */ |
| 4735 class ReclaimStudentSubmissionRequest { | 4756 class ReclaimStudentSubmissionRequest { |
| 4736 | 4757 |
| 4737 ReclaimStudentSubmissionRequest(); | 4758 ReclaimStudentSubmissionRequest(); |
| 4738 | 4759 |
| 4739 ReclaimStudentSubmissionRequest.fromJson(core.Map _json) { | 4760 ReclaimStudentSubmissionRequest.fromJson(core.Map _json) { |
| 4740 } | 4761 } |
| 4741 | 4762 |
| 4742 core.Map toJson() { | 4763 core.Map<core.String, core.Object> toJson() { |
| 4743 var _json = new core.Map(); | 4764 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 4744 return _json; | 4765 return _json; |
| 4745 } | 4766 } |
| 4746 } | 4767 } |
| 4747 | 4768 |
| 4748 /** Request to return a student submission. */ | 4769 /** Request to return a student submission. */ |
| 4749 class ReturnStudentSubmissionRequest { | 4770 class ReturnStudentSubmissionRequest { |
| 4750 | 4771 |
| 4751 ReturnStudentSubmissionRequest(); | 4772 ReturnStudentSubmissionRequest(); |
| 4752 | 4773 |
| 4753 ReturnStudentSubmissionRequest.fromJson(core.Map _json) { | 4774 ReturnStudentSubmissionRequest.fromJson(core.Map _json) { |
| 4754 } | 4775 } |
| 4755 | 4776 |
| 4756 core.Map toJson() { | 4777 core.Map<core.String, core.Object> toJson() { |
| 4757 var _json = new core.Map(); | 4778 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 4758 return _json; | 4779 return _json; |
| 4759 } | 4780 } |
| 4760 } | 4781 } |
| 4761 | 4782 |
| 4762 /** Drive file that is used as material for course work. */ | 4783 /** Drive file that is used as material for course work. */ |
| 4763 class SharedDriveFile { | 4784 class SharedDriveFile { |
| 4764 /** Drive file details. */ | 4785 /** Drive file details. */ |
| 4765 DriveFile driveFile; | 4786 DriveFile driveFile; |
| 4766 /** | 4787 /** |
| 4767 * Mechanism by which students access the Drive item. | 4788 * Mechanism by which students access the Drive item. |
| (...skipping 10 matching lines...) Expand all Loading... |
| 4778 | 4799 |
| 4779 SharedDriveFile.fromJson(core.Map _json) { | 4800 SharedDriveFile.fromJson(core.Map _json) { |
| 4780 if (_json.containsKey("driveFile")) { | 4801 if (_json.containsKey("driveFile")) { |
| 4781 driveFile = new DriveFile.fromJson(_json["driveFile"]); | 4802 driveFile = new DriveFile.fromJson(_json["driveFile"]); |
| 4782 } | 4803 } |
| 4783 if (_json.containsKey("shareMode")) { | 4804 if (_json.containsKey("shareMode")) { |
| 4784 shareMode = _json["shareMode"]; | 4805 shareMode = _json["shareMode"]; |
| 4785 } | 4806 } |
| 4786 } | 4807 } |
| 4787 | 4808 |
| 4788 core.Map toJson() { | 4809 core.Map<core.String, core.Object> toJson() { |
| 4789 var _json = new core.Map(); | 4810 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 4790 if (driveFile != null) { | 4811 if (driveFile != null) { |
| 4791 _json["driveFile"] = (driveFile).toJson(); | 4812 _json["driveFile"] = (driveFile).toJson(); |
| 4792 } | 4813 } |
| 4793 if (shareMode != null) { | 4814 if (shareMode != null) { |
| 4794 _json["shareMode"] = shareMode; | 4815 _json["shareMode"] = shareMode; |
| 4795 } | 4816 } |
| 4796 return _json; | 4817 return _json; |
| 4797 } | 4818 } |
| 4798 } | 4819 } |
| 4799 | 4820 |
| 4800 /** Student work for a short answer question. */ | 4821 /** Student work for a short answer question. */ |
| 4801 class ShortAnswerSubmission { | 4822 class ShortAnswerSubmission { |
| 4802 /** Student response to a short-answer question. */ | 4823 /** Student response to a short-answer question. */ |
| 4803 core.String answer; | 4824 core.String answer; |
| 4804 | 4825 |
| 4805 ShortAnswerSubmission(); | 4826 ShortAnswerSubmission(); |
| 4806 | 4827 |
| 4807 ShortAnswerSubmission.fromJson(core.Map _json) { | 4828 ShortAnswerSubmission.fromJson(core.Map _json) { |
| 4808 if (_json.containsKey("answer")) { | 4829 if (_json.containsKey("answer")) { |
| 4809 answer = _json["answer"]; | 4830 answer = _json["answer"]; |
| 4810 } | 4831 } |
| 4811 } | 4832 } |
| 4812 | 4833 |
| 4813 core.Map toJson() { | 4834 core.Map<core.String, core.Object> toJson() { |
| 4814 var _json = new core.Map(); | 4835 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 4815 if (answer != null) { | 4836 if (answer != null) { |
| 4816 _json["answer"] = answer; | 4837 _json["answer"] = answer; |
| 4817 } | 4838 } |
| 4818 return _json; | 4839 return _json; |
| 4819 } | 4840 } |
| 4820 } | 4841 } |
| 4821 | 4842 |
| 4822 /** Student in a course. */ | 4843 /** Student in a course. */ |
| 4823 class Student { | 4844 class Student { |
| 4824 /** | 4845 /** |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4862 profile = new UserProfile.fromJson(_json["profile"]); | 4883 profile = new UserProfile.fromJson(_json["profile"]); |
| 4863 } | 4884 } |
| 4864 if (_json.containsKey("studentWorkFolder")) { | 4885 if (_json.containsKey("studentWorkFolder")) { |
| 4865 studentWorkFolder = new DriveFolder.fromJson(_json["studentWorkFolder"]); | 4886 studentWorkFolder = new DriveFolder.fromJson(_json["studentWorkFolder"]); |
| 4866 } | 4887 } |
| 4867 if (_json.containsKey("userId")) { | 4888 if (_json.containsKey("userId")) { |
| 4868 userId = _json["userId"]; | 4889 userId = _json["userId"]; |
| 4869 } | 4890 } |
| 4870 } | 4891 } |
| 4871 | 4892 |
| 4872 core.Map toJson() { | 4893 core.Map<core.String, core.Object> toJson() { |
| 4873 var _json = new core.Map(); | 4894 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 4874 if (courseId != null) { | 4895 if (courseId != null) { |
| 4875 _json["courseId"] = courseId; | 4896 _json["courseId"] = courseId; |
| 4876 } | 4897 } |
| 4877 if (profile != null) { | 4898 if (profile != null) { |
| 4878 _json["profile"] = (profile).toJson(); | 4899 _json["profile"] = (profile).toJson(); |
| 4879 } | 4900 } |
| 4880 if (studentWorkFolder != null) { | 4901 if (studentWorkFolder != null) { |
| 4881 _json["studentWorkFolder"] = (studentWorkFolder).toJson(); | 4902 _json["studentWorkFolder"] = (studentWorkFolder).toJson(); |
| 4882 } | 4903 } |
| 4883 if (userId != null) { | 4904 if (userId != null) { |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5052 state = _json["state"]; | 5073 state = _json["state"]; |
| 5053 } | 5074 } |
| 5054 if (_json.containsKey("updateTime")) { | 5075 if (_json.containsKey("updateTime")) { |
| 5055 updateTime = _json["updateTime"]; | 5076 updateTime = _json["updateTime"]; |
| 5056 } | 5077 } |
| 5057 if (_json.containsKey("userId")) { | 5078 if (_json.containsKey("userId")) { |
| 5058 userId = _json["userId"]; | 5079 userId = _json["userId"]; |
| 5059 } | 5080 } |
| 5060 } | 5081 } |
| 5061 | 5082 |
| 5062 core.Map toJson() { | 5083 core.Map<core.String, core.Object> toJson() { |
| 5063 var _json = new core.Map(); | 5084 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 5064 if (alternateLink != null) { | 5085 if (alternateLink != null) { |
| 5065 _json["alternateLink"] = alternateLink; | 5086 _json["alternateLink"] = alternateLink; |
| 5066 } | 5087 } |
| 5067 if (assignedGrade != null) { | 5088 if (assignedGrade != null) { |
| 5068 _json["assignedGrade"] = assignedGrade; | 5089 _json["assignedGrade"] = assignedGrade; |
| 5069 } | 5090 } |
| 5070 if (assignmentSubmission != null) { | 5091 if (assignmentSubmission != null) { |
| 5071 _json["assignmentSubmission"] = (assignmentSubmission).toJson(); | 5092 _json["assignmentSubmission"] = (assignmentSubmission).toJson(); |
| 5072 } | 5093 } |
| 5073 if (associatedWithDeveloper != null) { | 5094 if (associatedWithDeveloper != null) { |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5146 courseId = _json["courseId"]; | 5167 courseId = _json["courseId"]; |
| 5147 } | 5168 } |
| 5148 if (_json.containsKey("profile")) { | 5169 if (_json.containsKey("profile")) { |
| 5149 profile = new UserProfile.fromJson(_json["profile"]); | 5170 profile = new UserProfile.fromJson(_json["profile"]); |
| 5150 } | 5171 } |
| 5151 if (_json.containsKey("userId")) { | 5172 if (_json.containsKey("userId")) { |
| 5152 userId = _json["userId"]; | 5173 userId = _json["userId"]; |
| 5153 } | 5174 } |
| 5154 } | 5175 } |
| 5155 | 5176 |
| 5156 core.Map toJson() { | 5177 core.Map<core.String, core.Object> toJson() { |
| 5157 var _json = new core.Map(); | 5178 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 5158 if (courseId != null) { | 5179 if (courseId != null) { |
| 5159 _json["courseId"] = courseId; | 5180 _json["courseId"] = courseId; |
| 5160 } | 5181 } |
| 5161 if (profile != null) { | 5182 if (profile != null) { |
| 5162 _json["profile"] = (profile).toJson(); | 5183 _json["profile"] = (profile).toJson(); |
| 5163 } | 5184 } |
| 5164 if (userId != null) { | 5185 if (userId != null) { |
| 5165 _json["userId"] = userId; | 5186 _json["userId"] = userId; |
| 5166 } | 5187 } |
| 5167 return _json; | 5188 return _json; |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5199 minutes = _json["minutes"]; | 5220 minutes = _json["minutes"]; |
| 5200 } | 5221 } |
| 5201 if (_json.containsKey("nanos")) { | 5222 if (_json.containsKey("nanos")) { |
| 5202 nanos = _json["nanos"]; | 5223 nanos = _json["nanos"]; |
| 5203 } | 5224 } |
| 5204 if (_json.containsKey("seconds")) { | 5225 if (_json.containsKey("seconds")) { |
| 5205 seconds = _json["seconds"]; | 5226 seconds = _json["seconds"]; |
| 5206 } | 5227 } |
| 5207 } | 5228 } |
| 5208 | 5229 |
| 5209 core.Map toJson() { | 5230 core.Map<core.String, core.Object> toJson() { |
| 5210 var _json = new core.Map(); | 5231 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 5211 if (hours != null) { | 5232 if (hours != null) { |
| 5212 _json["hours"] = hours; | 5233 _json["hours"] = hours; |
| 5213 } | 5234 } |
| 5214 if (minutes != null) { | 5235 if (minutes != null) { |
| 5215 _json["minutes"] = minutes; | 5236 _json["minutes"] = minutes; |
| 5216 } | 5237 } |
| 5217 if (nanos != null) { | 5238 if (nanos != null) { |
| 5218 _json["nanos"] = nanos; | 5239 _json["nanos"] = nanos; |
| 5219 } | 5240 } |
| 5220 if (seconds != null) { | 5241 if (seconds != null) { |
| 5221 _json["seconds"] = seconds; | 5242 _json["seconds"] = seconds; |
| 5222 } | 5243 } |
| 5223 return _json; | 5244 return _json; |
| 5224 } | 5245 } |
| 5225 } | 5246 } |
| 5226 | 5247 |
| 5227 /** Request to turn in a student submission. */ | 5248 /** Request to turn in a student submission. */ |
| 5228 class TurnInStudentSubmissionRequest { | 5249 class TurnInStudentSubmissionRequest { |
| 5229 | 5250 |
| 5230 TurnInStudentSubmissionRequest(); | 5251 TurnInStudentSubmissionRequest(); |
| 5231 | 5252 |
| 5232 TurnInStudentSubmissionRequest.fromJson(core.Map _json) { | 5253 TurnInStudentSubmissionRequest.fromJson(core.Map _json) { |
| 5233 } | 5254 } |
| 5234 | 5255 |
| 5235 core.Map toJson() { | 5256 core.Map<core.String, core.Object> toJson() { |
| 5236 var _json = new core.Map(); | 5257 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 5237 return _json; | 5258 return _json; |
| 5238 } | 5259 } |
| 5239 } | 5260 } |
| 5240 | 5261 |
| 5241 /** Global information for a user. */ | 5262 /** Global information for a user. */ |
| 5242 class UserProfile { | 5263 class UserProfile { |
| 5243 /** | 5264 /** |
| 5244 * Email address of the user. | 5265 * Email address of the user. |
| 5245 * | 5266 * |
| 5246 * Read-only. | 5267 * Read-only. |
| (...skipping 16 matching lines...) Expand all Loading... |
| 5263 * | 5284 * |
| 5264 * Read-only. | 5285 * Read-only. |
| 5265 */ | 5286 */ |
| 5266 core.List<GlobalPermission> permissions; | 5287 core.List<GlobalPermission> permissions; |
| 5267 /** | 5288 /** |
| 5268 * URL of user's profile photo. | 5289 * URL of user's profile photo. |
| 5269 * | 5290 * |
| 5270 * Read-only. | 5291 * Read-only. |
| 5271 */ | 5292 */ |
| 5272 core.String photoUrl; | 5293 core.String photoUrl; |
| 5294 /** |
| 5295 * Whether or not the user is a verified teacher |
| 5296 * |
| 5297 * Read-only |
| 5298 */ |
| 5299 core.bool verifiedTeacher; |
| 5273 | 5300 |
| 5274 UserProfile(); | 5301 UserProfile(); |
| 5275 | 5302 |
| 5276 UserProfile.fromJson(core.Map _json) { | 5303 UserProfile.fromJson(core.Map _json) { |
| 5277 if (_json.containsKey("emailAddress")) { | 5304 if (_json.containsKey("emailAddress")) { |
| 5278 emailAddress = _json["emailAddress"]; | 5305 emailAddress = _json["emailAddress"]; |
| 5279 } | 5306 } |
| 5280 if (_json.containsKey("id")) { | 5307 if (_json.containsKey("id")) { |
| 5281 id = _json["id"]; | 5308 id = _json["id"]; |
| 5282 } | 5309 } |
| 5283 if (_json.containsKey("name")) { | 5310 if (_json.containsKey("name")) { |
| 5284 name = new Name.fromJson(_json["name"]); | 5311 name = new Name.fromJson(_json["name"]); |
| 5285 } | 5312 } |
| 5286 if (_json.containsKey("permissions")) { | 5313 if (_json.containsKey("permissions")) { |
| 5287 permissions = _json["permissions"].map((value) => new GlobalPermission.fro
mJson(value)).toList(); | 5314 permissions = _json["permissions"].map((value) => new GlobalPermission.fro
mJson(value)).toList(); |
| 5288 } | 5315 } |
| 5289 if (_json.containsKey("photoUrl")) { | 5316 if (_json.containsKey("photoUrl")) { |
| 5290 photoUrl = _json["photoUrl"]; | 5317 photoUrl = _json["photoUrl"]; |
| 5291 } | 5318 } |
| 5319 if (_json.containsKey("verifiedTeacher")) { |
| 5320 verifiedTeacher = _json["verifiedTeacher"]; |
| 5321 } |
| 5292 } | 5322 } |
| 5293 | 5323 |
| 5294 core.Map toJson() { | 5324 core.Map<core.String, core.Object> toJson() { |
| 5295 var _json = new core.Map(); | 5325 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 5296 if (emailAddress != null) { | 5326 if (emailAddress != null) { |
| 5297 _json["emailAddress"] = emailAddress; | 5327 _json["emailAddress"] = emailAddress; |
| 5298 } | 5328 } |
| 5299 if (id != null) { | 5329 if (id != null) { |
| 5300 _json["id"] = id; | 5330 _json["id"] = id; |
| 5301 } | 5331 } |
| 5302 if (name != null) { | 5332 if (name != null) { |
| 5303 _json["name"] = (name).toJson(); | 5333 _json["name"] = (name).toJson(); |
| 5304 } | 5334 } |
| 5305 if (permissions != null) { | 5335 if (permissions != null) { |
| 5306 _json["permissions"] = permissions.map((value) => (value).toJson()).toList
(); | 5336 _json["permissions"] = permissions.map((value) => (value).toJson()).toList
(); |
| 5307 } | 5337 } |
| 5308 if (photoUrl != null) { | 5338 if (photoUrl != null) { |
| 5309 _json["photoUrl"] = photoUrl; | 5339 _json["photoUrl"] = photoUrl; |
| 5310 } | 5340 } |
| 5341 if (verifiedTeacher != null) { |
| 5342 _json["verifiedTeacher"] = verifiedTeacher; |
| 5343 } |
| 5311 return _json; | 5344 return _json; |
| 5312 } | 5345 } |
| 5313 } | 5346 } |
| 5314 | 5347 |
| 5315 /** YouTube video item. */ | 5348 /** YouTube video item. */ |
| 5316 class YouTubeVideo { | 5349 class YouTubeVideo { |
| 5317 /** | 5350 /** |
| 5318 * URL that can be used to view the YouTube video. | 5351 * URL that can be used to view the YouTube video. |
| 5319 * | 5352 * |
| 5320 * Read-only. | 5353 * Read-only. |
| (...skipping 24 matching lines...) Expand all Loading... |
| 5345 id = _json["id"]; | 5378 id = _json["id"]; |
| 5346 } | 5379 } |
| 5347 if (_json.containsKey("thumbnailUrl")) { | 5380 if (_json.containsKey("thumbnailUrl")) { |
| 5348 thumbnailUrl = _json["thumbnailUrl"]; | 5381 thumbnailUrl = _json["thumbnailUrl"]; |
| 5349 } | 5382 } |
| 5350 if (_json.containsKey("title")) { | 5383 if (_json.containsKey("title")) { |
| 5351 title = _json["title"]; | 5384 title = _json["title"]; |
| 5352 } | 5385 } |
| 5353 } | 5386 } |
| 5354 | 5387 |
| 5355 core.Map toJson() { | 5388 core.Map<core.String, core.Object> toJson() { |
| 5356 var _json = new core.Map(); | 5389 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 5357 if (alternateLink != null) { | 5390 if (alternateLink != null) { |
| 5358 _json["alternateLink"] = alternateLink; | 5391 _json["alternateLink"] = alternateLink; |
| 5359 } | 5392 } |
| 5360 if (id != null) { | 5393 if (id != null) { |
| 5361 _json["id"] = id; | 5394 _json["id"] = id; |
| 5362 } | 5395 } |
| 5363 if (thumbnailUrl != null) { | 5396 if (thumbnailUrl != null) { |
| 5364 _json["thumbnailUrl"] = thumbnailUrl; | 5397 _json["thumbnailUrl"] = thumbnailUrl; |
| 5365 } | 5398 } |
| 5366 if (title != null) { | 5399 if (title != null) { |
| 5367 _json["title"] = title; | 5400 _json["title"] = title; |
| 5368 } | 5401 } |
| 5369 return _json; | 5402 return _json; |
| 5370 } | 5403 } |
| 5371 } | 5404 } |
| OLD | NEW |