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.sheets.v4; | 3 library googleapis.sheets.v4; |
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 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
310 * | 310 * |
311 * [request] - The metadata request object. | 311 * [request] - The metadata request object. |
312 * | 312 * |
313 * Request parameters: | 313 * Request parameters: |
314 * | 314 * |
315 * [spreadsheetId] - The ID of the spreadsheet to update. | 315 * [spreadsheetId] - The ID of the spreadsheet to update. |
316 * | 316 * |
317 * [range] - The A1 notation of a range to search for a logical table of data. | 317 * [range] - The A1 notation of a range to search for a logical table of data. |
318 * Values will be appended after the last row of the table. | 318 * Values will be appended after the last row of the table. |
319 * | 319 * |
| 320 * [responseValueRenderOption] - Determines how values in the response should |
| 321 * be rendered. |
| 322 * The default render option is ValueRenderOption.FORMATTED_VALUE. |
| 323 * Possible string values are: |
| 324 * - "FORMATTED_VALUE" : A FORMATTED_VALUE. |
| 325 * - "UNFORMATTED_VALUE" : A UNFORMATTED_VALUE. |
| 326 * - "FORMULA" : A FORMULA. |
| 327 * |
320 * [insertDataOption] - How the input data should be inserted. | 328 * [insertDataOption] - How the input data should be inserted. |
321 * Possible string values are: | 329 * Possible string values are: |
322 * - "OVERWRITE" : A OVERWRITE. | 330 * - "OVERWRITE" : A OVERWRITE. |
323 * - "INSERT_ROWS" : A INSERT_ROWS. | 331 * - "INSERT_ROWS" : A INSERT_ROWS. |
324 * | 332 * |
325 * [valueInputOption] - How the input data should be interpreted. | 333 * [valueInputOption] - How the input data should be interpreted. |
326 * Possible string values are: | 334 * Possible string values are: |
327 * - "INPUT_VALUE_OPTION_UNSPECIFIED" : A INPUT_VALUE_OPTION_UNSPECIFIED. | 335 * - "INPUT_VALUE_OPTION_UNSPECIFIED" : A INPUT_VALUE_OPTION_UNSPECIFIED. |
328 * - "RAW" : A RAW. | 336 * - "RAW" : A RAW. |
329 * - "USER_ENTERED" : A USER_ENTERED. | 337 * - "USER_ENTERED" : A USER_ENTERED. |
330 * | 338 * |
331 * [responseDateTimeRenderOption] - Determines how dates, times, and durations | 339 * [responseDateTimeRenderOption] - Determines how dates, times, and durations |
332 * in the response should be | 340 * in the response should be |
333 * rendered. This is ignored if response_value_render_option is | 341 * rendered. This is ignored if response_value_render_option is |
334 * FORMATTED_VALUE. | 342 * FORMATTED_VALUE. |
335 * The default dateTime render option is [DateTimeRenderOption.SERIAL_NUMBER]. | 343 * The default dateTime render option is [DateTimeRenderOption.SERIAL_NUMBER]. |
336 * Possible string values are: | 344 * Possible string values are: |
337 * - "SERIAL_NUMBER" : A SERIAL_NUMBER. | 345 * - "SERIAL_NUMBER" : A SERIAL_NUMBER. |
338 * - "FORMATTED_STRING" : A FORMATTED_STRING. | 346 * - "FORMATTED_STRING" : A FORMATTED_STRING. |
339 * | 347 * |
340 * [includeValuesInResponse] - Determines if the update response should | 348 * [includeValuesInResponse] - Determines if the update response should |
341 * include the values | 349 * include the values |
342 * of the cells that were appended. By default, responses | 350 * of the cells that were appended. By default, responses |
343 * do not include the updated values. | 351 * do not include the updated values. |
344 * | 352 * |
345 * [responseValueRenderOption] - Determines how values in the response should | |
346 * be rendered. | |
347 * The default render option is ValueRenderOption.FORMATTED_VALUE. | |
348 * Possible string values are: | |
349 * - "FORMATTED_VALUE" : A FORMATTED_VALUE. | |
350 * - "UNFORMATTED_VALUE" : A UNFORMATTED_VALUE. | |
351 * - "FORMULA" : A FORMULA. | |
352 * | |
353 * Completes with a [AppendValuesResponse]. | 353 * Completes with a [AppendValuesResponse]. |
354 * | 354 * |
355 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 355 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
356 * error. | 356 * error. |
357 * | 357 * |
358 * If the used [http.Client] completes with an error when making a REST call, | 358 * If the used [http.Client] completes with an error when making a REST call, |
359 * this method will complete with the same error. | 359 * this method will complete with the same error. |
360 */ | 360 */ |
361 async.Future<AppendValuesResponse> append(ValueRange request, core.String spre
adsheetId, core.String range, {core.String insertDataOption, core.String valueIn
putOption, core.String responseDateTimeRenderOption, core.bool includeValuesInRe
sponse, core.String responseValueRenderOption}) { | 361 async.Future<AppendValuesResponse> append(ValueRange request, core.String spre
adsheetId, core.String range, {core.String responseValueRenderOption, core.Strin
g insertDataOption, core.String valueInputOption, core.String responseDateTimeRe
nderOption, core.bool includeValuesInResponse}) { |
362 var _url = null; | 362 var _url = null; |
363 var _queryParams = new core.Map(); | 363 var _queryParams = new core.Map(); |
364 var _uploadMedia = null; | 364 var _uploadMedia = null; |
365 var _uploadOptions = null; | 365 var _uploadOptions = null; |
366 var _downloadOptions = commons.DownloadOptions.Metadata; | 366 var _downloadOptions = commons.DownloadOptions.Metadata; |
367 var _body = null; | 367 var _body = null; |
368 | 368 |
369 if (request != null) { | 369 if (request != null) { |
370 _body = convert.JSON.encode((request).toJson()); | 370 _body = convert.JSON.encode((request).toJson()); |
371 } | 371 } |
372 if (spreadsheetId == null) { | 372 if (spreadsheetId == null) { |
373 throw new core.ArgumentError("Parameter spreadsheetId is required."); | 373 throw new core.ArgumentError("Parameter spreadsheetId is required."); |
374 } | 374 } |
375 if (range == null) { | 375 if (range == null) { |
376 throw new core.ArgumentError("Parameter range is required."); | 376 throw new core.ArgumentError("Parameter range is required."); |
377 } | 377 } |
| 378 if (responseValueRenderOption != null) { |
| 379 _queryParams["responseValueRenderOption"] = [responseValueRenderOption]; |
| 380 } |
378 if (insertDataOption != null) { | 381 if (insertDataOption != null) { |
379 _queryParams["insertDataOption"] = [insertDataOption]; | 382 _queryParams["insertDataOption"] = [insertDataOption]; |
380 } | 383 } |
381 if (valueInputOption != null) { | 384 if (valueInputOption != null) { |
382 _queryParams["valueInputOption"] = [valueInputOption]; | 385 _queryParams["valueInputOption"] = [valueInputOption]; |
383 } | 386 } |
384 if (responseDateTimeRenderOption != null) { | 387 if (responseDateTimeRenderOption != null) { |
385 _queryParams["responseDateTimeRenderOption"] = [responseDateTimeRenderOpti
on]; | 388 _queryParams["responseDateTimeRenderOption"] = [responseDateTimeRenderOpti
on]; |
386 } | 389 } |
387 if (includeValuesInResponse != null) { | 390 if (includeValuesInResponse != null) { |
388 _queryParams["includeValuesInResponse"] = ["${includeValuesInResponse}"]; | 391 _queryParams["includeValuesInResponse"] = ["${includeValuesInResponse}"]; |
389 } | 392 } |
390 if (responseValueRenderOption != null) { | |
391 _queryParams["responseValueRenderOption"] = [responseValueRenderOption]; | |
392 } | |
393 | 393 |
394 _url = 'v4/spreadsheets/' + commons.Escaper.ecapeVariable('$spreadsheetId')
+ '/values/' + commons.Escaper.ecapeVariable('$range') + ':append'; | 394 _url = 'v4/spreadsheets/' + commons.Escaper.ecapeVariable('$spreadsheetId')
+ '/values/' + commons.Escaper.ecapeVariable('$range') + ':append'; |
395 | 395 |
396 var _response = _requester.request(_url, | 396 var _response = _requester.request(_url, |
397 "POST", | 397 "POST", |
398 body: _body, | 398 body: _body, |
399 queryParams: _queryParams, | 399 queryParams: _queryParams, |
400 uploadOptions: _uploadOptions, | 400 uploadOptions: _uploadOptions, |
401 uploadMedia: _uploadMedia, | 401 uploadMedia: _uploadMedia, |
402 downloadOptions: _downloadOptions); | 402 downloadOptions: _downloadOptions); |
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
719 * a valueInputOption. | 719 * a valueInputOption. |
720 * | 720 * |
721 * [request] - The metadata request object. | 721 * [request] - The metadata request object. |
722 * | 722 * |
723 * Request parameters: | 723 * Request parameters: |
724 * | 724 * |
725 * [spreadsheetId] - The ID of the spreadsheet to update. | 725 * [spreadsheetId] - The ID of the spreadsheet to update. |
726 * | 726 * |
727 * [range] - The A1 notation of the values to update. | 727 * [range] - The A1 notation of the values to update. |
728 * | 728 * |
| 729 * [includeValuesInResponse] - Determines if the update response should |
| 730 * include the values |
| 731 * of the cells that were updated. By default, responses |
| 732 * do not include the updated values. |
| 733 * If the range to write was larger than than the range actually written, |
| 734 * the response will include all values in the requested range (excluding |
| 735 * trailing empty rows and columns). |
| 736 * |
729 * [responseValueRenderOption] - Determines how values in the response should | 737 * [responseValueRenderOption] - Determines how values in the response should |
730 * be rendered. | 738 * be rendered. |
731 * The default render option is ValueRenderOption.FORMATTED_VALUE. | 739 * The default render option is ValueRenderOption.FORMATTED_VALUE. |
732 * Possible string values are: | 740 * Possible string values are: |
733 * - "FORMATTED_VALUE" : A FORMATTED_VALUE. | 741 * - "FORMATTED_VALUE" : A FORMATTED_VALUE. |
734 * - "UNFORMATTED_VALUE" : A UNFORMATTED_VALUE. | 742 * - "UNFORMATTED_VALUE" : A UNFORMATTED_VALUE. |
735 * - "FORMULA" : A FORMULA. | 743 * - "FORMULA" : A FORMULA. |
736 * | 744 * |
737 * [valueInputOption] - How the input data should be interpreted. | 745 * [valueInputOption] - How the input data should be interpreted. |
738 * Possible string values are: | 746 * Possible string values are: |
739 * - "INPUT_VALUE_OPTION_UNSPECIFIED" : A INPUT_VALUE_OPTION_UNSPECIFIED. | 747 * - "INPUT_VALUE_OPTION_UNSPECIFIED" : A INPUT_VALUE_OPTION_UNSPECIFIED. |
740 * - "RAW" : A RAW. | 748 * - "RAW" : A RAW. |
741 * - "USER_ENTERED" : A USER_ENTERED. | 749 * - "USER_ENTERED" : A USER_ENTERED. |
742 * | 750 * |
743 * [responseDateTimeRenderOption] - Determines how dates, times, and durations | 751 * [responseDateTimeRenderOption] - Determines how dates, times, and durations |
744 * in the response should be | 752 * in the response should be |
745 * rendered. This is ignored if response_value_render_option is | 753 * rendered. This is ignored if response_value_render_option is |
746 * FORMATTED_VALUE. | 754 * FORMATTED_VALUE. |
747 * The default dateTime render option is [DateTimeRenderOption.SERIAL_NUMBER]. | 755 * The default dateTime render option is [DateTimeRenderOption.SERIAL_NUMBER]. |
748 * Possible string values are: | 756 * Possible string values are: |
749 * - "SERIAL_NUMBER" : A SERIAL_NUMBER. | 757 * - "SERIAL_NUMBER" : A SERIAL_NUMBER. |
750 * - "FORMATTED_STRING" : A FORMATTED_STRING. | 758 * - "FORMATTED_STRING" : A FORMATTED_STRING. |
751 * | 759 * |
752 * [includeValuesInResponse] - Determines if the update response should | |
753 * include the values | |
754 * of the cells that were updated. By default, responses | |
755 * do not include the updated values. | |
756 * If the range to write was larger than than the range actually written, | |
757 * the response will include all values in the requested range (excluding | |
758 * trailing empty rows and columns). | |
759 * | |
760 * Completes with a [UpdateValuesResponse]. | 760 * Completes with a [UpdateValuesResponse]. |
761 * | 761 * |
762 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 762 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
763 * error. | 763 * error. |
764 * | 764 * |
765 * If the used [http.Client] completes with an error when making a REST call, | 765 * If the used [http.Client] completes with an error when making a REST call, |
766 * this method will complete with the same error. | 766 * this method will complete with the same error. |
767 */ | 767 */ |
768 async.Future<UpdateValuesResponse> update(ValueRange request, core.String spre
adsheetId, core.String range, {core.String responseValueRenderOption, core.Strin
g valueInputOption, core.String responseDateTimeRenderOption, core.bool includeV
aluesInResponse}) { | 768 async.Future<UpdateValuesResponse> update(ValueRange request, core.String spre
adsheetId, core.String range, {core.bool includeValuesInResponse, core.String re
sponseValueRenderOption, core.String valueInputOption, core.String responseDateT
imeRenderOption}) { |
769 var _url = null; | 769 var _url = null; |
770 var _queryParams = new core.Map(); | 770 var _queryParams = new core.Map(); |
771 var _uploadMedia = null; | 771 var _uploadMedia = null; |
772 var _uploadOptions = null; | 772 var _uploadOptions = null; |
773 var _downloadOptions = commons.DownloadOptions.Metadata; | 773 var _downloadOptions = commons.DownloadOptions.Metadata; |
774 var _body = null; | 774 var _body = null; |
775 | 775 |
776 if (request != null) { | 776 if (request != null) { |
777 _body = convert.JSON.encode((request).toJson()); | 777 _body = convert.JSON.encode((request).toJson()); |
778 } | 778 } |
779 if (spreadsheetId == null) { | 779 if (spreadsheetId == null) { |
780 throw new core.ArgumentError("Parameter spreadsheetId is required."); | 780 throw new core.ArgumentError("Parameter spreadsheetId is required."); |
781 } | 781 } |
782 if (range == null) { | 782 if (range == null) { |
783 throw new core.ArgumentError("Parameter range is required."); | 783 throw new core.ArgumentError("Parameter range is required."); |
784 } | 784 } |
| 785 if (includeValuesInResponse != null) { |
| 786 _queryParams["includeValuesInResponse"] = ["${includeValuesInResponse}"]; |
| 787 } |
785 if (responseValueRenderOption != null) { | 788 if (responseValueRenderOption != null) { |
786 _queryParams["responseValueRenderOption"] = [responseValueRenderOption]; | 789 _queryParams["responseValueRenderOption"] = [responseValueRenderOption]; |
787 } | 790 } |
788 if (valueInputOption != null) { | 791 if (valueInputOption != null) { |
789 _queryParams["valueInputOption"] = [valueInputOption]; | 792 _queryParams["valueInputOption"] = [valueInputOption]; |
790 } | 793 } |
791 if (responseDateTimeRenderOption != null) { | 794 if (responseDateTimeRenderOption != null) { |
792 _queryParams["responseDateTimeRenderOption"] = [responseDateTimeRenderOpti
on]; | 795 _queryParams["responseDateTimeRenderOption"] = [responseDateTimeRenderOpti
on]; |
793 } | 796 } |
794 if (includeValuesInResponse != null) { | |
795 _queryParams["includeValuesInResponse"] = ["${includeValuesInResponse}"]; | |
796 } | |
797 | 797 |
798 _url = 'v4/spreadsheets/' + commons.Escaper.ecapeVariable('$spreadsheetId')
+ '/values/' + commons.Escaper.ecapeVariable('$range'); | 798 _url = 'v4/spreadsheets/' + commons.Escaper.ecapeVariable('$spreadsheetId')
+ '/values/' + commons.Escaper.ecapeVariable('$range'); |
799 | 799 |
800 var _response = _requester.request(_url, | 800 var _response = _requester.request(_url, |
801 "PUT", | 801 "PUT", |
802 body: _body, | 802 body: _body, |
803 queryParams: _queryParams, | 803 queryParams: _queryParams, |
804 uploadOptions: _uploadOptions, | 804 uploadOptions: _uploadOptions, |
805 uploadMedia: _uploadMedia, | 805 uploadMedia: _uploadMedia, |
806 downloadOptions: _downloadOptions); | 806 downloadOptions: _downloadOptions); |
(...skipping 14 matching lines...) Expand all Loading... |
821 BandedRange bandedRange; | 821 BandedRange bandedRange; |
822 | 822 |
823 AddBandingRequest(); | 823 AddBandingRequest(); |
824 | 824 |
825 AddBandingRequest.fromJson(core.Map _json) { | 825 AddBandingRequest.fromJson(core.Map _json) { |
826 if (_json.containsKey("bandedRange")) { | 826 if (_json.containsKey("bandedRange")) { |
827 bandedRange = new BandedRange.fromJson(_json["bandedRange"]); | 827 bandedRange = new BandedRange.fromJson(_json["bandedRange"]); |
828 } | 828 } |
829 } | 829 } |
830 | 830 |
831 core.Map toJson() { | 831 core.Map<core.String, core.Object> toJson() { |
832 var _json = new core.Map(); | 832 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
833 if (bandedRange != null) { | 833 if (bandedRange != null) { |
834 _json["bandedRange"] = (bandedRange).toJson(); | 834 _json["bandedRange"] = (bandedRange).toJson(); |
835 } | 835 } |
836 return _json; | 836 return _json; |
837 } | 837 } |
838 } | 838 } |
839 | 839 |
840 /** The result of adding a banded range. */ | 840 /** The result of adding a banded range. */ |
841 class AddBandingResponse { | 841 class AddBandingResponse { |
842 /** The banded range that was added. */ | 842 /** The banded range that was added. */ |
843 BandedRange bandedRange; | 843 BandedRange bandedRange; |
844 | 844 |
845 AddBandingResponse(); | 845 AddBandingResponse(); |
846 | 846 |
847 AddBandingResponse.fromJson(core.Map _json) { | 847 AddBandingResponse.fromJson(core.Map _json) { |
848 if (_json.containsKey("bandedRange")) { | 848 if (_json.containsKey("bandedRange")) { |
849 bandedRange = new BandedRange.fromJson(_json["bandedRange"]); | 849 bandedRange = new BandedRange.fromJson(_json["bandedRange"]); |
850 } | 850 } |
851 } | 851 } |
852 | 852 |
853 core.Map toJson() { | 853 core.Map<core.String, core.Object> toJson() { |
854 var _json = new core.Map(); | 854 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
855 if (bandedRange != null) { | 855 if (bandedRange != null) { |
856 _json["bandedRange"] = (bandedRange).toJson(); | 856 _json["bandedRange"] = (bandedRange).toJson(); |
857 } | 857 } |
858 return _json; | 858 return _json; |
859 } | 859 } |
860 } | 860 } |
861 | 861 |
862 /** Adds a chart to a sheet in the spreadsheet. */ | 862 /** Adds a chart to a sheet in the spreadsheet. */ |
863 class AddChartRequest { | 863 class AddChartRequest { |
864 /** | 864 /** |
865 * The chart that should be added to the spreadsheet, including the position | 865 * The chart that should be added to the spreadsheet, including the position |
866 * where it should be placed. The chartId | 866 * where it should be placed. The chartId |
867 * field is optional; if one is not set, an id will be randomly generated. (It | 867 * field is optional; if one is not set, an id will be randomly generated. (It |
868 * is an error to specify the ID of a chart that already exists.) | 868 * is an error to specify the ID of a chart that already exists.) |
869 */ | 869 */ |
870 EmbeddedChart chart; | 870 EmbeddedChart chart; |
871 | 871 |
872 AddChartRequest(); | 872 AddChartRequest(); |
873 | 873 |
874 AddChartRequest.fromJson(core.Map _json) { | 874 AddChartRequest.fromJson(core.Map _json) { |
875 if (_json.containsKey("chart")) { | 875 if (_json.containsKey("chart")) { |
876 chart = new EmbeddedChart.fromJson(_json["chart"]); | 876 chart = new EmbeddedChart.fromJson(_json["chart"]); |
877 } | 877 } |
878 } | 878 } |
879 | 879 |
880 core.Map toJson() { | 880 core.Map<core.String, core.Object> toJson() { |
881 var _json = new core.Map(); | 881 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
882 if (chart != null) { | 882 if (chart != null) { |
883 _json["chart"] = (chart).toJson(); | 883 _json["chart"] = (chart).toJson(); |
884 } | 884 } |
885 return _json; | 885 return _json; |
886 } | 886 } |
887 } | 887 } |
888 | 888 |
889 /** The result of adding a chart to a spreadsheet. */ | 889 /** The result of adding a chart to a spreadsheet. */ |
890 class AddChartResponse { | 890 class AddChartResponse { |
891 /** The newly added chart. */ | 891 /** The newly added chart. */ |
892 EmbeddedChart chart; | 892 EmbeddedChart chart; |
893 | 893 |
894 AddChartResponse(); | 894 AddChartResponse(); |
895 | 895 |
896 AddChartResponse.fromJson(core.Map _json) { | 896 AddChartResponse.fromJson(core.Map _json) { |
897 if (_json.containsKey("chart")) { | 897 if (_json.containsKey("chart")) { |
898 chart = new EmbeddedChart.fromJson(_json["chart"]); | 898 chart = new EmbeddedChart.fromJson(_json["chart"]); |
899 } | 899 } |
900 } | 900 } |
901 | 901 |
902 core.Map toJson() { | 902 core.Map<core.String, core.Object> toJson() { |
903 var _json = new core.Map(); | 903 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
904 if (chart != null) { | 904 if (chart != null) { |
905 _json["chart"] = (chart).toJson(); | 905 _json["chart"] = (chart).toJson(); |
906 } | 906 } |
907 return _json; | 907 return _json; |
908 } | 908 } |
909 } | 909 } |
910 | 910 |
911 /** | 911 /** |
912 * Adds a new conditional format rule at the given index. | 912 * Adds a new conditional format rule at the given index. |
913 * All subsequent rules' indexes are incremented. | 913 * All subsequent rules' indexes are incremented. |
914 */ | 914 */ |
915 class AddConditionalFormatRuleRequest { | 915 class AddConditionalFormatRuleRequest { |
916 /** The zero-based index where the rule should be inserted. */ | 916 /** The zero-based index where the rule should be inserted. */ |
917 core.int index; | 917 core.int index; |
918 /** The rule to add. */ | 918 /** The rule to add. */ |
919 ConditionalFormatRule rule; | 919 ConditionalFormatRule rule; |
920 | 920 |
921 AddConditionalFormatRuleRequest(); | 921 AddConditionalFormatRuleRequest(); |
922 | 922 |
923 AddConditionalFormatRuleRequest.fromJson(core.Map _json) { | 923 AddConditionalFormatRuleRequest.fromJson(core.Map _json) { |
924 if (_json.containsKey("index")) { | 924 if (_json.containsKey("index")) { |
925 index = _json["index"]; | 925 index = _json["index"]; |
926 } | 926 } |
927 if (_json.containsKey("rule")) { | 927 if (_json.containsKey("rule")) { |
928 rule = new ConditionalFormatRule.fromJson(_json["rule"]); | 928 rule = new ConditionalFormatRule.fromJson(_json["rule"]); |
929 } | 929 } |
930 } | 930 } |
931 | 931 |
932 core.Map toJson() { | 932 core.Map<core.String, core.Object> toJson() { |
933 var _json = new core.Map(); | 933 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
934 if (index != null) { | 934 if (index != null) { |
935 _json["index"] = index; | 935 _json["index"] = index; |
936 } | 936 } |
937 if (rule != null) { | 937 if (rule != null) { |
938 _json["rule"] = (rule).toJson(); | 938 _json["rule"] = (rule).toJson(); |
939 } | 939 } |
940 return _json; | 940 return _json; |
941 } | 941 } |
942 } | 942 } |
943 | 943 |
944 /** Adds a filter view. */ | 944 /** Adds a filter view. */ |
945 class AddFilterViewRequest { | 945 class AddFilterViewRequest { |
946 /** | 946 /** |
947 * The filter to add. The filterViewId | 947 * The filter to add. The filterViewId |
948 * field is optional; if one is not set, an id will be randomly generated. (It | 948 * field is optional; if one is not set, an id will be randomly generated. (It |
949 * is an error to specify the ID of a filter that already exists.) | 949 * is an error to specify the ID of a filter that already exists.) |
950 */ | 950 */ |
951 FilterView filter; | 951 FilterView filter; |
952 | 952 |
953 AddFilterViewRequest(); | 953 AddFilterViewRequest(); |
954 | 954 |
955 AddFilterViewRequest.fromJson(core.Map _json) { | 955 AddFilterViewRequest.fromJson(core.Map _json) { |
956 if (_json.containsKey("filter")) { | 956 if (_json.containsKey("filter")) { |
957 filter = new FilterView.fromJson(_json["filter"]); | 957 filter = new FilterView.fromJson(_json["filter"]); |
958 } | 958 } |
959 } | 959 } |
960 | 960 |
961 core.Map toJson() { | 961 core.Map<core.String, core.Object> toJson() { |
962 var _json = new core.Map(); | 962 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
963 if (filter != null) { | 963 if (filter != null) { |
964 _json["filter"] = (filter).toJson(); | 964 _json["filter"] = (filter).toJson(); |
965 } | 965 } |
966 return _json; | 966 return _json; |
967 } | 967 } |
968 } | 968 } |
969 | 969 |
970 /** The result of adding a filter view. */ | 970 /** The result of adding a filter view. */ |
971 class AddFilterViewResponse { | 971 class AddFilterViewResponse { |
972 /** The newly added filter view. */ | 972 /** The newly added filter view. */ |
973 FilterView filter; | 973 FilterView filter; |
974 | 974 |
975 AddFilterViewResponse(); | 975 AddFilterViewResponse(); |
976 | 976 |
977 AddFilterViewResponse.fromJson(core.Map _json) { | 977 AddFilterViewResponse.fromJson(core.Map _json) { |
978 if (_json.containsKey("filter")) { | 978 if (_json.containsKey("filter")) { |
979 filter = new FilterView.fromJson(_json["filter"]); | 979 filter = new FilterView.fromJson(_json["filter"]); |
980 } | 980 } |
981 } | 981 } |
982 | 982 |
983 core.Map toJson() { | 983 core.Map<core.String, core.Object> toJson() { |
984 var _json = new core.Map(); | 984 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
985 if (filter != null) { | 985 if (filter != null) { |
986 _json["filter"] = (filter).toJson(); | 986 _json["filter"] = (filter).toJson(); |
987 } | 987 } |
988 return _json; | 988 return _json; |
989 } | 989 } |
990 } | 990 } |
991 | 991 |
992 /** Adds a named range to the spreadsheet. */ | 992 /** Adds a named range to the spreadsheet. */ |
993 class AddNamedRangeRequest { | 993 class AddNamedRangeRequest { |
994 /** | 994 /** |
995 * The named range to add. The namedRangeId | 995 * The named range to add. The namedRangeId |
996 * field is optional; if one is not set, an id will be randomly generated. (It | 996 * field is optional; if one is not set, an id will be randomly generated. (It |
997 * is an error to specify the ID of a range that already exists.) | 997 * is an error to specify the ID of a range that already exists.) |
998 */ | 998 */ |
999 NamedRange namedRange; | 999 NamedRange namedRange; |
1000 | 1000 |
1001 AddNamedRangeRequest(); | 1001 AddNamedRangeRequest(); |
1002 | 1002 |
1003 AddNamedRangeRequest.fromJson(core.Map _json) { | 1003 AddNamedRangeRequest.fromJson(core.Map _json) { |
1004 if (_json.containsKey("namedRange")) { | 1004 if (_json.containsKey("namedRange")) { |
1005 namedRange = new NamedRange.fromJson(_json["namedRange"]); | 1005 namedRange = new NamedRange.fromJson(_json["namedRange"]); |
1006 } | 1006 } |
1007 } | 1007 } |
1008 | 1008 |
1009 core.Map toJson() { | 1009 core.Map<core.String, core.Object> toJson() { |
1010 var _json = new core.Map(); | 1010 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1011 if (namedRange != null) { | 1011 if (namedRange != null) { |
1012 _json["namedRange"] = (namedRange).toJson(); | 1012 _json["namedRange"] = (namedRange).toJson(); |
1013 } | 1013 } |
1014 return _json; | 1014 return _json; |
1015 } | 1015 } |
1016 } | 1016 } |
1017 | 1017 |
1018 /** The result of adding a named range. */ | 1018 /** The result of adding a named range. */ |
1019 class AddNamedRangeResponse { | 1019 class AddNamedRangeResponse { |
1020 /** The named range to add. */ | 1020 /** The named range to add. */ |
1021 NamedRange namedRange; | 1021 NamedRange namedRange; |
1022 | 1022 |
1023 AddNamedRangeResponse(); | 1023 AddNamedRangeResponse(); |
1024 | 1024 |
1025 AddNamedRangeResponse.fromJson(core.Map _json) { | 1025 AddNamedRangeResponse.fromJson(core.Map _json) { |
1026 if (_json.containsKey("namedRange")) { | 1026 if (_json.containsKey("namedRange")) { |
1027 namedRange = new NamedRange.fromJson(_json["namedRange"]); | 1027 namedRange = new NamedRange.fromJson(_json["namedRange"]); |
1028 } | 1028 } |
1029 } | 1029 } |
1030 | 1030 |
1031 core.Map toJson() { | 1031 core.Map<core.String, core.Object> toJson() { |
1032 var _json = new core.Map(); | 1032 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1033 if (namedRange != null) { | 1033 if (namedRange != null) { |
1034 _json["namedRange"] = (namedRange).toJson(); | 1034 _json["namedRange"] = (namedRange).toJson(); |
1035 } | 1035 } |
1036 return _json; | 1036 return _json; |
1037 } | 1037 } |
1038 } | 1038 } |
1039 | 1039 |
1040 /** Adds a new protected range. */ | 1040 /** Adds a new protected range. */ |
1041 class AddProtectedRangeRequest { | 1041 class AddProtectedRangeRequest { |
1042 /** | 1042 /** |
1043 * The protected range to be added. The | 1043 * The protected range to be added. The |
1044 * protectedRangeId field is optional; if | 1044 * protectedRangeId field is optional; if |
1045 * one is not set, an id will be randomly generated. (It is an error to | 1045 * one is not set, an id will be randomly generated. (It is an error to |
1046 * specify the ID of a range that already exists.) | 1046 * specify the ID of a range that already exists.) |
1047 */ | 1047 */ |
1048 ProtectedRange protectedRange; | 1048 ProtectedRange protectedRange; |
1049 | 1049 |
1050 AddProtectedRangeRequest(); | 1050 AddProtectedRangeRequest(); |
1051 | 1051 |
1052 AddProtectedRangeRequest.fromJson(core.Map _json) { | 1052 AddProtectedRangeRequest.fromJson(core.Map _json) { |
1053 if (_json.containsKey("protectedRange")) { | 1053 if (_json.containsKey("protectedRange")) { |
1054 protectedRange = new ProtectedRange.fromJson(_json["protectedRange"]); | 1054 protectedRange = new ProtectedRange.fromJson(_json["protectedRange"]); |
1055 } | 1055 } |
1056 } | 1056 } |
1057 | 1057 |
1058 core.Map toJson() { | 1058 core.Map<core.String, core.Object> toJson() { |
1059 var _json = new core.Map(); | 1059 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1060 if (protectedRange != null) { | 1060 if (protectedRange != null) { |
1061 _json["protectedRange"] = (protectedRange).toJson(); | 1061 _json["protectedRange"] = (protectedRange).toJson(); |
1062 } | 1062 } |
1063 return _json; | 1063 return _json; |
1064 } | 1064 } |
1065 } | 1065 } |
1066 | 1066 |
1067 /** The result of adding a new protected range. */ | 1067 /** The result of adding a new protected range. */ |
1068 class AddProtectedRangeResponse { | 1068 class AddProtectedRangeResponse { |
1069 /** The newly added protected range. */ | 1069 /** The newly added protected range. */ |
1070 ProtectedRange protectedRange; | 1070 ProtectedRange protectedRange; |
1071 | 1071 |
1072 AddProtectedRangeResponse(); | 1072 AddProtectedRangeResponse(); |
1073 | 1073 |
1074 AddProtectedRangeResponse.fromJson(core.Map _json) { | 1074 AddProtectedRangeResponse.fromJson(core.Map _json) { |
1075 if (_json.containsKey("protectedRange")) { | 1075 if (_json.containsKey("protectedRange")) { |
1076 protectedRange = new ProtectedRange.fromJson(_json["protectedRange"]); | 1076 protectedRange = new ProtectedRange.fromJson(_json["protectedRange"]); |
1077 } | 1077 } |
1078 } | 1078 } |
1079 | 1079 |
1080 core.Map toJson() { | 1080 core.Map<core.String, core.Object> toJson() { |
1081 var _json = new core.Map(); | 1081 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1082 if (protectedRange != null) { | 1082 if (protectedRange != null) { |
1083 _json["protectedRange"] = (protectedRange).toJson(); | 1083 _json["protectedRange"] = (protectedRange).toJson(); |
1084 } | 1084 } |
1085 return _json; | 1085 return _json; |
1086 } | 1086 } |
1087 } | 1087 } |
1088 | 1088 |
1089 /** | 1089 /** |
1090 * Adds a new sheet. | 1090 * Adds a new sheet. |
1091 * When a sheet is added at a given index, | 1091 * When a sheet is added at a given index, |
(...skipping 13 matching lines...) Expand all Loading... |
1105 SheetProperties properties; | 1105 SheetProperties properties; |
1106 | 1106 |
1107 AddSheetRequest(); | 1107 AddSheetRequest(); |
1108 | 1108 |
1109 AddSheetRequest.fromJson(core.Map _json) { | 1109 AddSheetRequest.fromJson(core.Map _json) { |
1110 if (_json.containsKey("properties")) { | 1110 if (_json.containsKey("properties")) { |
1111 properties = new SheetProperties.fromJson(_json["properties"]); | 1111 properties = new SheetProperties.fromJson(_json["properties"]); |
1112 } | 1112 } |
1113 } | 1113 } |
1114 | 1114 |
1115 core.Map toJson() { | 1115 core.Map<core.String, core.Object> toJson() { |
1116 var _json = new core.Map(); | 1116 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1117 if (properties != null) { | 1117 if (properties != null) { |
1118 _json["properties"] = (properties).toJson(); | 1118 _json["properties"] = (properties).toJson(); |
1119 } | 1119 } |
1120 return _json; | 1120 return _json; |
1121 } | 1121 } |
1122 } | 1122 } |
1123 | 1123 |
1124 /** The result of adding a sheet. */ | 1124 /** The result of adding a sheet. */ |
1125 class AddSheetResponse { | 1125 class AddSheetResponse { |
1126 /** The properties of the newly added sheet. */ | 1126 /** The properties of the newly added sheet. */ |
1127 SheetProperties properties; | 1127 SheetProperties properties; |
1128 | 1128 |
1129 AddSheetResponse(); | 1129 AddSheetResponse(); |
1130 | 1130 |
1131 AddSheetResponse.fromJson(core.Map _json) { | 1131 AddSheetResponse.fromJson(core.Map _json) { |
1132 if (_json.containsKey("properties")) { | 1132 if (_json.containsKey("properties")) { |
1133 properties = new SheetProperties.fromJson(_json["properties"]); | 1133 properties = new SheetProperties.fromJson(_json["properties"]); |
1134 } | 1134 } |
1135 } | 1135 } |
1136 | 1136 |
1137 core.Map toJson() { | 1137 core.Map<core.String, core.Object> toJson() { |
1138 var _json = new core.Map(); | 1138 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1139 if (properties != null) { | 1139 if (properties != null) { |
1140 _json["properties"] = (properties).toJson(); | 1140 _json["properties"] = (properties).toJson(); |
1141 } | 1141 } |
1142 return _json; | 1142 return _json; |
1143 } | 1143 } |
1144 } | 1144 } |
1145 | 1145 |
1146 /** | 1146 /** |
1147 * Adds new cells after the last row with data in a sheet, | 1147 * Adds new cells after the last row with data in a sheet, |
1148 * inserting new rows into the sheet if necessary. | 1148 * inserting new rows into the sheet if necessary. |
(...skipping 18 matching lines...) Expand all Loading... |
1167 fields = _json["fields"]; | 1167 fields = _json["fields"]; |
1168 } | 1168 } |
1169 if (_json.containsKey("rows")) { | 1169 if (_json.containsKey("rows")) { |
1170 rows = _json["rows"].map((value) => new RowData.fromJson(value)).toList(); | 1170 rows = _json["rows"].map((value) => new RowData.fromJson(value)).toList(); |
1171 } | 1171 } |
1172 if (_json.containsKey("sheetId")) { | 1172 if (_json.containsKey("sheetId")) { |
1173 sheetId = _json["sheetId"]; | 1173 sheetId = _json["sheetId"]; |
1174 } | 1174 } |
1175 } | 1175 } |
1176 | 1176 |
1177 core.Map toJson() { | 1177 core.Map<core.String, core.Object> toJson() { |
1178 var _json = new core.Map(); | 1178 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1179 if (fields != null) { | 1179 if (fields != null) { |
1180 _json["fields"] = fields; | 1180 _json["fields"] = fields; |
1181 } | 1181 } |
1182 if (rows != null) { | 1182 if (rows != null) { |
1183 _json["rows"] = rows.map((value) => (value).toJson()).toList(); | 1183 _json["rows"] = rows.map((value) => (value).toJson()).toList(); |
1184 } | 1184 } |
1185 if (sheetId != null) { | 1185 if (sheetId != null) { |
1186 _json["sheetId"] = sheetId; | 1186 _json["sheetId"] = sheetId; |
1187 } | 1187 } |
1188 return _json; | 1188 return _json; |
(...skipping 22 matching lines...) Expand all Loading... |
1211 dimension = _json["dimension"]; | 1211 dimension = _json["dimension"]; |
1212 } | 1212 } |
1213 if (_json.containsKey("length")) { | 1213 if (_json.containsKey("length")) { |
1214 length = _json["length"]; | 1214 length = _json["length"]; |
1215 } | 1215 } |
1216 if (_json.containsKey("sheetId")) { | 1216 if (_json.containsKey("sheetId")) { |
1217 sheetId = _json["sheetId"]; | 1217 sheetId = _json["sheetId"]; |
1218 } | 1218 } |
1219 } | 1219 } |
1220 | 1220 |
1221 core.Map toJson() { | 1221 core.Map<core.String, core.Object> toJson() { |
1222 var _json = new core.Map(); | 1222 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1223 if (dimension != null) { | 1223 if (dimension != null) { |
1224 _json["dimension"] = dimension; | 1224 _json["dimension"] = dimension; |
1225 } | 1225 } |
1226 if (length != null) { | 1226 if (length != null) { |
1227 _json["length"] = length; | 1227 _json["length"] = length; |
1228 } | 1228 } |
1229 if (sheetId != null) { | 1229 if (sheetId != null) { |
1230 _json["sheetId"] = sheetId; | 1230 _json["sheetId"] = sheetId; |
1231 } | 1231 } |
1232 return _json; | 1232 return _json; |
(...skipping 20 matching lines...) Expand all Loading... |
1253 spreadsheetId = _json["spreadsheetId"]; | 1253 spreadsheetId = _json["spreadsheetId"]; |
1254 } | 1254 } |
1255 if (_json.containsKey("tableRange")) { | 1255 if (_json.containsKey("tableRange")) { |
1256 tableRange = _json["tableRange"]; | 1256 tableRange = _json["tableRange"]; |
1257 } | 1257 } |
1258 if (_json.containsKey("updates")) { | 1258 if (_json.containsKey("updates")) { |
1259 updates = new UpdateValuesResponse.fromJson(_json["updates"]); | 1259 updates = new UpdateValuesResponse.fromJson(_json["updates"]); |
1260 } | 1260 } |
1261 } | 1261 } |
1262 | 1262 |
1263 core.Map toJson() { | 1263 core.Map<core.String, core.Object> toJson() { |
1264 var _json = new core.Map(); | 1264 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1265 if (spreadsheetId != null) { | 1265 if (spreadsheetId != null) { |
1266 _json["spreadsheetId"] = spreadsheetId; | 1266 _json["spreadsheetId"] = spreadsheetId; |
1267 } | 1267 } |
1268 if (tableRange != null) { | 1268 if (tableRange != null) { |
1269 _json["tableRange"] = tableRange; | 1269 _json["tableRange"] = tableRange; |
1270 } | 1270 } |
1271 if (updates != null) { | 1271 if (updates != null) { |
1272 _json["updates"] = (updates).toJson(); | 1272 _json["updates"] = (updates).toJson(); |
1273 } | 1273 } |
1274 return _json; | 1274 return _json; |
(...skipping 27 matching lines...) Expand all Loading... |
1302 range = new GridRange.fromJson(_json["range"]); | 1302 range = new GridRange.fromJson(_json["range"]); |
1303 } | 1303 } |
1304 if (_json.containsKey("sourceAndDestination")) { | 1304 if (_json.containsKey("sourceAndDestination")) { |
1305 sourceAndDestination = new SourceAndDestination.fromJson(_json["sourceAndD
estination"]); | 1305 sourceAndDestination = new SourceAndDestination.fromJson(_json["sourceAndD
estination"]); |
1306 } | 1306 } |
1307 if (_json.containsKey("useAlternateSeries")) { | 1307 if (_json.containsKey("useAlternateSeries")) { |
1308 useAlternateSeries = _json["useAlternateSeries"]; | 1308 useAlternateSeries = _json["useAlternateSeries"]; |
1309 } | 1309 } |
1310 } | 1310 } |
1311 | 1311 |
1312 core.Map toJson() { | 1312 core.Map<core.String, core.Object> toJson() { |
1313 var _json = new core.Map(); | 1313 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1314 if (range != null) { | 1314 if (range != null) { |
1315 _json["range"] = (range).toJson(); | 1315 _json["range"] = (range).toJson(); |
1316 } | 1316 } |
1317 if (sourceAndDestination != null) { | 1317 if (sourceAndDestination != null) { |
1318 _json["sourceAndDestination"] = (sourceAndDestination).toJson(); | 1318 _json["sourceAndDestination"] = (sourceAndDestination).toJson(); |
1319 } | 1319 } |
1320 if (useAlternateSeries != null) { | 1320 if (useAlternateSeries != null) { |
1321 _json["useAlternateSeries"] = useAlternateSeries; | 1321 _json["useAlternateSeries"] = useAlternateSeries; |
1322 } | 1322 } |
1323 return _json; | 1323 return _json; |
(...skipping 12 matching lines...) Expand all Loading... |
1336 DimensionRange dimensions; | 1336 DimensionRange dimensions; |
1337 | 1337 |
1338 AutoResizeDimensionsRequest(); | 1338 AutoResizeDimensionsRequest(); |
1339 | 1339 |
1340 AutoResizeDimensionsRequest.fromJson(core.Map _json) { | 1340 AutoResizeDimensionsRequest.fromJson(core.Map _json) { |
1341 if (_json.containsKey("dimensions")) { | 1341 if (_json.containsKey("dimensions")) { |
1342 dimensions = new DimensionRange.fromJson(_json["dimensions"]); | 1342 dimensions = new DimensionRange.fromJson(_json["dimensions"]); |
1343 } | 1343 } |
1344 } | 1344 } |
1345 | 1345 |
1346 core.Map toJson() { | 1346 core.Map<core.String, core.Object> toJson() { |
1347 var _json = new core.Map(); | 1347 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1348 if (dimensions != null) { | 1348 if (dimensions != null) { |
1349 _json["dimensions"] = (dimensions).toJson(); | 1349 _json["dimensions"] = (dimensions).toJson(); |
1350 } | 1350 } |
1351 return _json; | 1351 return _json; |
1352 } | 1352 } |
1353 } | 1353 } |
1354 | 1354 |
1355 /** A banded (alternating colors) range in a sheet. */ | 1355 /** A banded (alternating colors) range in a sheet. */ |
1356 class BandedRange { | 1356 class BandedRange { |
1357 /** The id of the banded range. */ | 1357 /** The id of the banded range. */ |
(...skipping 23 matching lines...) Expand all Loading... |
1381 columnProperties = new BandingProperties.fromJson(_json["columnProperties"
]); | 1381 columnProperties = new BandingProperties.fromJson(_json["columnProperties"
]); |
1382 } | 1382 } |
1383 if (_json.containsKey("range")) { | 1383 if (_json.containsKey("range")) { |
1384 range = new GridRange.fromJson(_json["range"]); | 1384 range = new GridRange.fromJson(_json["range"]); |
1385 } | 1385 } |
1386 if (_json.containsKey("rowProperties")) { | 1386 if (_json.containsKey("rowProperties")) { |
1387 rowProperties = new BandingProperties.fromJson(_json["rowProperties"]); | 1387 rowProperties = new BandingProperties.fromJson(_json["rowProperties"]); |
1388 } | 1388 } |
1389 } | 1389 } |
1390 | 1390 |
1391 core.Map toJson() { | 1391 core.Map<core.String, core.Object> toJson() { |
1392 var _json = new core.Map(); | 1392 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1393 if (bandedRangeId != null) { | 1393 if (bandedRangeId != null) { |
1394 _json["bandedRangeId"] = bandedRangeId; | 1394 _json["bandedRangeId"] = bandedRangeId; |
1395 } | 1395 } |
1396 if (columnProperties != null) { | 1396 if (columnProperties != null) { |
1397 _json["columnProperties"] = (columnProperties).toJson(); | 1397 _json["columnProperties"] = (columnProperties).toJson(); |
1398 } | 1398 } |
1399 if (range != null) { | 1399 if (range != null) { |
1400 _json["range"] = (range).toJson(); | 1400 _json["range"] = (range).toJson(); |
1401 } | 1401 } |
1402 if (rowProperties != null) { | 1402 if (rowProperties != null) { |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1453 footerColor = new Color.fromJson(_json["footerColor"]); | 1453 footerColor = new Color.fromJson(_json["footerColor"]); |
1454 } | 1454 } |
1455 if (_json.containsKey("headerColor")) { | 1455 if (_json.containsKey("headerColor")) { |
1456 headerColor = new Color.fromJson(_json["headerColor"]); | 1456 headerColor = new Color.fromJson(_json["headerColor"]); |
1457 } | 1457 } |
1458 if (_json.containsKey("secondBandColor")) { | 1458 if (_json.containsKey("secondBandColor")) { |
1459 secondBandColor = new Color.fromJson(_json["secondBandColor"]); | 1459 secondBandColor = new Color.fromJson(_json["secondBandColor"]); |
1460 } | 1460 } |
1461 } | 1461 } |
1462 | 1462 |
1463 core.Map toJson() { | 1463 core.Map<core.String, core.Object> toJson() { |
1464 var _json = new core.Map(); | 1464 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1465 if (firstBandColor != null) { | 1465 if (firstBandColor != null) { |
1466 _json["firstBandColor"] = (firstBandColor).toJson(); | 1466 _json["firstBandColor"] = (firstBandColor).toJson(); |
1467 } | 1467 } |
1468 if (footerColor != null) { | 1468 if (footerColor != null) { |
1469 _json["footerColor"] = (footerColor).toJson(); | 1469 _json["footerColor"] = (footerColor).toJson(); |
1470 } | 1470 } |
1471 if (headerColor != null) { | 1471 if (headerColor != null) { |
1472 _json["headerColor"] = (headerColor).toJson(); | 1472 _json["headerColor"] = (headerColor).toJson(); |
1473 } | 1473 } |
1474 if (secondBandColor != null) { | 1474 if (secondBandColor != null) { |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1517 format = new TextFormat.fromJson(_json["format"]); | 1517 format = new TextFormat.fromJson(_json["format"]); |
1518 } | 1518 } |
1519 if (_json.containsKey("position")) { | 1519 if (_json.containsKey("position")) { |
1520 position = _json["position"]; | 1520 position = _json["position"]; |
1521 } | 1521 } |
1522 if (_json.containsKey("title")) { | 1522 if (_json.containsKey("title")) { |
1523 title = _json["title"]; | 1523 title = _json["title"]; |
1524 } | 1524 } |
1525 } | 1525 } |
1526 | 1526 |
1527 core.Map toJson() { | 1527 core.Map<core.String, core.Object> toJson() { |
1528 var _json = new core.Map(); | 1528 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1529 if (format != null) { | 1529 if (format != null) { |
1530 _json["format"] = (format).toJson(); | 1530 _json["format"] = (format).toJson(); |
1531 } | 1531 } |
1532 if (position != null) { | 1532 if (position != null) { |
1533 _json["position"] = position; | 1533 _json["position"] = position; |
1534 } | 1534 } |
1535 if (title != null) { | 1535 if (title != null) { |
1536 _json["title"] = title; | 1536 _json["title"] = title; |
1537 } | 1537 } |
1538 return _json; | 1538 return _json; |
1539 } | 1539 } |
1540 } | 1540 } |
1541 | 1541 |
1542 /** | 1542 /** |
1543 * The domain of a chart. | 1543 * The domain of a chart. |
1544 * For example, if charting stock prices over time, this would be the date. | 1544 * For example, if charting stock prices over time, this would be the date. |
1545 */ | 1545 */ |
1546 class BasicChartDomain { | 1546 class BasicChartDomain { |
1547 /** | 1547 /** |
1548 * The data of the domain. For example, if charting stock prices over time, | 1548 * The data of the domain. For example, if charting stock prices over time, |
1549 * this is the data representing the dates. | 1549 * this is the data representing the dates. |
1550 */ | 1550 */ |
1551 ChartData domain; | 1551 ChartData domain; |
| 1552 /** |
| 1553 * True to reverse the order of the domain values (horizontal axis). |
| 1554 * Not applicable to Gauge, Geo, Histogram, Org, Pie, Radar, and Treemap |
| 1555 * charts. |
| 1556 */ |
| 1557 core.bool reversed; |
1552 | 1558 |
1553 BasicChartDomain(); | 1559 BasicChartDomain(); |
1554 | 1560 |
1555 BasicChartDomain.fromJson(core.Map _json) { | 1561 BasicChartDomain.fromJson(core.Map _json) { |
1556 if (_json.containsKey("domain")) { | 1562 if (_json.containsKey("domain")) { |
1557 domain = new ChartData.fromJson(_json["domain"]); | 1563 domain = new ChartData.fromJson(_json["domain"]); |
1558 } | 1564 } |
| 1565 if (_json.containsKey("reversed")) { |
| 1566 reversed = _json["reversed"]; |
| 1567 } |
1559 } | 1568 } |
1560 | 1569 |
1561 core.Map toJson() { | 1570 core.Map<core.String, core.Object> toJson() { |
1562 var _json = new core.Map(); | 1571 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1563 if (domain != null) { | 1572 if (domain != null) { |
1564 _json["domain"] = (domain).toJson(); | 1573 _json["domain"] = (domain).toJson(); |
1565 } | 1574 } |
| 1575 if (reversed != null) { |
| 1576 _json["reversed"] = reversed; |
| 1577 } |
1566 return _json; | 1578 return _json; |
1567 } | 1579 } |
1568 } | 1580 } |
1569 | 1581 |
1570 /** | 1582 /** |
1571 * A single series of data in a chart. | 1583 * A single series of data in a chart. |
1572 * For example, if charting stock prices over time, multiple series may exist, | 1584 * For example, if charting stock prices over time, multiple series may exist, |
1573 * one for the "Open Price", "High Price", "Low Price" and "Close Price". | 1585 * one for the "Open Price", "High Price", "Low Price" and "Close Price". |
1574 */ | 1586 */ |
1575 class BasicChartSeries { | 1587 class BasicChartSeries { |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1610 * - "LINE" : A <a href="/chart/interactive/docs/gallery/linechart">line | 1622 * - "LINE" : A <a href="/chart/interactive/docs/gallery/linechart">line |
1611 * chart</a>. | 1623 * chart</a>. |
1612 * - "AREA" : An <a href="/chart/interactive/docs/gallery/areachart">area | 1624 * - "AREA" : An <a href="/chart/interactive/docs/gallery/areachart">area |
1613 * chart</a>. | 1625 * chart</a>. |
1614 * - "COLUMN" : A <a href="/chart/interactive/docs/gallery/columnchart">column | 1626 * - "COLUMN" : A <a href="/chart/interactive/docs/gallery/columnchart">column |
1615 * chart</a>. | 1627 * chart</a>. |
1616 * - "SCATTER" : A <a | 1628 * - "SCATTER" : A <a |
1617 * href="/chart/interactive/docs/gallery/scatterchart">scatter chart</a>. | 1629 * href="/chart/interactive/docs/gallery/scatterchart">scatter chart</a>. |
1618 * - "COMBO" : A <a href="/chart/interactive/docs/gallery/combochart">combo | 1630 * - "COMBO" : A <a href="/chart/interactive/docs/gallery/combochart">combo |
1619 * chart</a>. | 1631 * chart</a>. |
| 1632 * - "STEPPED_AREA" : A <a |
| 1633 * href="/chart/interactive/docs/gallery/steppedareachart">stepped area |
| 1634 * chart</a>. |
1620 */ | 1635 */ |
1621 core.String type; | 1636 core.String type; |
1622 | 1637 |
1623 BasicChartSeries(); | 1638 BasicChartSeries(); |
1624 | 1639 |
1625 BasicChartSeries.fromJson(core.Map _json) { | 1640 BasicChartSeries.fromJson(core.Map _json) { |
1626 if (_json.containsKey("series")) { | 1641 if (_json.containsKey("series")) { |
1627 series = new ChartData.fromJson(_json["series"]); | 1642 series = new ChartData.fromJson(_json["series"]); |
1628 } | 1643 } |
1629 if (_json.containsKey("targetAxis")) { | 1644 if (_json.containsKey("targetAxis")) { |
1630 targetAxis = _json["targetAxis"]; | 1645 targetAxis = _json["targetAxis"]; |
1631 } | 1646 } |
1632 if (_json.containsKey("type")) { | 1647 if (_json.containsKey("type")) { |
1633 type = _json["type"]; | 1648 type = _json["type"]; |
1634 } | 1649 } |
1635 } | 1650 } |
1636 | 1651 |
1637 core.Map toJson() { | 1652 core.Map<core.String, core.Object> toJson() { |
1638 var _json = new core.Map(); | 1653 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1639 if (series != null) { | 1654 if (series != null) { |
1640 _json["series"] = (series).toJson(); | 1655 _json["series"] = (series).toJson(); |
1641 } | 1656 } |
1642 if (targetAxis != null) { | 1657 if (targetAxis != null) { |
1643 _json["targetAxis"] = targetAxis; | 1658 _json["targetAxis"] = targetAxis; |
1644 } | 1659 } |
1645 if (type != null) { | 1660 if (type != null) { |
1646 _json["type"] = type; | 1661 _json["type"] = type; |
1647 } | 1662 } |
1648 return _json; | 1663 return _json; |
(...skipping 16 matching lines...) Expand all Loading... |
1665 * - "LINE" : A <a href="/chart/interactive/docs/gallery/linechart">line | 1680 * - "LINE" : A <a href="/chart/interactive/docs/gallery/linechart">line |
1666 * chart</a>. | 1681 * chart</a>. |
1667 * - "AREA" : An <a href="/chart/interactive/docs/gallery/areachart">area | 1682 * - "AREA" : An <a href="/chart/interactive/docs/gallery/areachart">area |
1668 * chart</a>. | 1683 * chart</a>. |
1669 * - "COLUMN" : A <a href="/chart/interactive/docs/gallery/columnchart">column | 1684 * - "COLUMN" : A <a href="/chart/interactive/docs/gallery/columnchart">column |
1670 * chart</a>. | 1685 * chart</a>. |
1671 * - "SCATTER" : A <a | 1686 * - "SCATTER" : A <a |
1672 * href="/chart/interactive/docs/gallery/scatterchart">scatter chart</a>. | 1687 * href="/chart/interactive/docs/gallery/scatterchart">scatter chart</a>. |
1673 * - "COMBO" : A <a href="/chart/interactive/docs/gallery/combochart">combo | 1688 * - "COMBO" : A <a href="/chart/interactive/docs/gallery/combochart">combo |
1674 * chart</a>. | 1689 * chart</a>. |
| 1690 * - "STEPPED_AREA" : A <a |
| 1691 * href="/chart/interactive/docs/gallery/steppedareachart">stepped area |
| 1692 * chart</a>. |
1675 */ | 1693 */ |
1676 core.String chartType; | 1694 core.String chartType; |
1677 /** | 1695 /** |
1678 * The domain of data this is charting. | 1696 * The domain of data this is charting. |
1679 * Only a single domain is supported. | 1697 * Only a single domain is supported. |
1680 */ | 1698 */ |
1681 core.List<BasicChartDomain> domains; | 1699 core.List<BasicChartDomain> domains; |
1682 /** | 1700 /** |
1683 * The number of rows or columns in the data that are "headers". | 1701 * The number of rows or columns in the data that are "headers". |
1684 * If not set, Google Sheets will guess how many rows are headers based | 1702 * If not set, Google Sheets will guess how many rows are headers based |
1685 * on the data. | 1703 * on the data. |
1686 * | 1704 * |
1687 * (Note that BasicChartAxis.title may override the axis title | 1705 * (Note that BasicChartAxis.title may override the axis title |
1688 * inferred from the header values.) | 1706 * inferred from the header values.) |
1689 */ | 1707 */ |
1690 core.int headerCount; | 1708 core.int headerCount; |
1691 /** | 1709 /** |
| 1710 * If some values in a series are missing, gaps may appear in the chart (e.g, |
| 1711 * segments of lines in a line chart will be missing). To eliminate these |
| 1712 * gaps set this to true. |
| 1713 * Applies to Line, Area, and Combo charts. |
| 1714 */ |
| 1715 core.bool interpolateNulls; |
| 1716 /** |
1692 * The position of the chart legend. | 1717 * The position of the chart legend. |
1693 * Possible string values are: | 1718 * Possible string values are: |
1694 * - "BASIC_CHART_LEGEND_POSITION_UNSPECIFIED" : Default value, do not use. | 1719 * - "BASIC_CHART_LEGEND_POSITION_UNSPECIFIED" : Default value, do not use. |
1695 * - "BOTTOM_LEGEND" : The legend is rendered on the bottom of the chart. | 1720 * - "BOTTOM_LEGEND" : The legend is rendered on the bottom of the chart. |
1696 * - "LEFT_LEGEND" : The legend is rendered on the left of the chart. | 1721 * - "LEFT_LEGEND" : The legend is rendered on the left of the chart. |
1697 * - "RIGHT_LEGEND" : The legend is rendered on the right of the chart. | 1722 * - "RIGHT_LEGEND" : The legend is rendered on the right of the chart. |
1698 * - "TOP_LEGEND" : The legend is rendered on the top of the chart. | 1723 * - "TOP_LEGEND" : The legend is rendered on the top of the chart. |
1699 * - "NO_LEGEND" : No legend is rendered. | 1724 * - "NO_LEGEND" : No legend is rendered. |
1700 */ | 1725 */ |
1701 core.String legendPosition; | 1726 core.String legendPosition; |
| 1727 /** |
| 1728 * Gets whether all lines should be rendered smooth or straight by default. |
| 1729 * Applies to Line charts. |
| 1730 */ |
| 1731 core.bool lineSmoothing; |
1702 /** The data this chart is visualizing. */ | 1732 /** The data this chart is visualizing. */ |
1703 core.List<BasicChartSeries> series; | 1733 core.List<BasicChartSeries> series; |
| 1734 /** |
| 1735 * The stacked type for charts that support vertical stacking. |
| 1736 * Applies to Area, Bar, Column, and Stepped Area charts. |
| 1737 * Possible string values are: |
| 1738 * - "BASIC_CHART_STACKED_TYPE_UNSPECIFIED" : Default value, do not use. |
| 1739 * - "NOT_STACKED" : Series are not stacked. |
| 1740 * - "STACKED" : Series values are stacked, each value is rendered vertically |
| 1741 * beginning |
| 1742 * from the top of the value below it. |
| 1743 * - "PERCENT_STACKED" : Vertical stacks are stretched to reach the top of the |
| 1744 * chart, with |
| 1745 * values laid out as percentages of each other. |
| 1746 */ |
| 1747 core.String stackedType; |
| 1748 /** |
| 1749 * True to make the chart 3D. |
| 1750 * Applies to Bar and Column charts. |
| 1751 */ |
| 1752 core.bool threeDimensional; |
1704 | 1753 |
1705 BasicChartSpec(); | 1754 BasicChartSpec(); |
1706 | 1755 |
1707 BasicChartSpec.fromJson(core.Map _json) { | 1756 BasicChartSpec.fromJson(core.Map _json) { |
1708 if (_json.containsKey("axis")) { | 1757 if (_json.containsKey("axis")) { |
1709 axis = _json["axis"].map((value) => new BasicChartAxis.fromJson(value)).to
List(); | 1758 axis = _json["axis"].map((value) => new BasicChartAxis.fromJson(value)).to
List(); |
1710 } | 1759 } |
1711 if (_json.containsKey("chartType")) { | 1760 if (_json.containsKey("chartType")) { |
1712 chartType = _json["chartType"]; | 1761 chartType = _json["chartType"]; |
1713 } | 1762 } |
1714 if (_json.containsKey("domains")) { | 1763 if (_json.containsKey("domains")) { |
1715 domains = _json["domains"].map((value) => new BasicChartDomain.fromJson(va
lue)).toList(); | 1764 domains = _json["domains"].map((value) => new BasicChartDomain.fromJson(va
lue)).toList(); |
1716 } | 1765 } |
1717 if (_json.containsKey("headerCount")) { | 1766 if (_json.containsKey("headerCount")) { |
1718 headerCount = _json["headerCount"]; | 1767 headerCount = _json["headerCount"]; |
1719 } | 1768 } |
| 1769 if (_json.containsKey("interpolateNulls")) { |
| 1770 interpolateNulls = _json["interpolateNulls"]; |
| 1771 } |
1720 if (_json.containsKey("legendPosition")) { | 1772 if (_json.containsKey("legendPosition")) { |
1721 legendPosition = _json["legendPosition"]; | 1773 legendPosition = _json["legendPosition"]; |
1722 } | 1774 } |
| 1775 if (_json.containsKey("lineSmoothing")) { |
| 1776 lineSmoothing = _json["lineSmoothing"]; |
| 1777 } |
1723 if (_json.containsKey("series")) { | 1778 if (_json.containsKey("series")) { |
1724 series = _json["series"].map((value) => new BasicChartSeries.fromJson(valu
e)).toList(); | 1779 series = _json["series"].map((value) => new BasicChartSeries.fromJson(valu
e)).toList(); |
1725 } | 1780 } |
| 1781 if (_json.containsKey("stackedType")) { |
| 1782 stackedType = _json["stackedType"]; |
| 1783 } |
| 1784 if (_json.containsKey("threeDimensional")) { |
| 1785 threeDimensional = _json["threeDimensional"]; |
| 1786 } |
1726 } | 1787 } |
1727 | 1788 |
1728 core.Map toJson() { | 1789 core.Map<core.String, core.Object> toJson() { |
1729 var _json = new core.Map(); | 1790 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1730 if (axis != null) { | 1791 if (axis != null) { |
1731 _json["axis"] = axis.map((value) => (value).toJson()).toList(); | 1792 _json["axis"] = axis.map((value) => (value).toJson()).toList(); |
1732 } | 1793 } |
1733 if (chartType != null) { | 1794 if (chartType != null) { |
1734 _json["chartType"] = chartType; | 1795 _json["chartType"] = chartType; |
1735 } | 1796 } |
1736 if (domains != null) { | 1797 if (domains != null) { |
1737 _json["domains"] = domains.map((value) => (value).toJson()).toList(); | 1798 _json["domains"] = domains.map((value) => (value).toJson()).toList(); |
1738 } | 1799 } |
1739 if (headerCount != null) { | 1800 if (headerCount != null) { |
1740 _json["headerCount"] = headerCount; | 1801 _json["headerCount"] = headerCount; |
1741 } | 1802 } |
| 1803 if (interpolateNulls != null) { |
| 1804 _json["interpolateNulls"] = interpolateNulls; |
| 1805 } |
1742 if (legendPosition != null) { | 1806 if (legendPosition != null) { |
1743 _json["legendPosition"] = legendPosition; | 1807 _json["legendPosition"] = legendPosition; |
1744 } | 1808 } |
| 1809 if (lineSmoothing != null) { |
| 1810 _json["lineSmoothing"] = lineSmoothing; |
| 1811 } |
1745 if (series != null) { | 1812 if (series != null) { |
1746 _json["series"] = series.map((value) => (value).toJson()).toList(); | 1813 _json["series"] = series.map((value) => (value).toJson()).toList(); |
1747 } | 1814 } |
| 1815 if (stackedType != null) { |
| 1816 _json["stackedType"] = stackedType; |
| 1817 } |
| 1818 if (threeDimensional != null) { |
| 1819 _json["threeDimensional"] = threeDimensional; |
| 1820 } |
1748 return _json; | 1821 return _json; |
1749 } | 1822 } |
1750 } | 1823 } |
1751 | 1824 |
1752 /** The default filter associated with a sheet. */ | 1825 /** The default filter associated with a sheet. */ |
1753 class BasicFilter { | 1826 class BasicFilter { |
1754 /** | 1827 /** |
1755 * The criteria for showing/hiding values per column. | 1828 * The criteria for showing/hiding values per column. |
1756 * The map's key is the column index, and the value is the criteria for | 1829 * The map's key is the column index, and the value is the criteria for |
1757 * that column. | 1830 * that column. |
1758 */ | 1831 */ |
1759 core.Map<core.String, FilterCriteria> criteria; | 1832 core.Map<core.String, FilterCriteria> criteria; |
1760 /** The range the filter covers. */ | 1833 /** The range the filter covers. */ |
1761 GridRange range; | 1834 GridRange range; |
1762 /** | 1835 /** |
1763 * The sort order per column. Later specifications are used when values | 1836 * The sort order per column. Later specifications are used when values |
1764 * are equal in the earlier specifications. | 1837 * are equal in the earlier specifications. |
1765 */ | 1838 */ |
1766 core.List<SortSpec> sortSpecs; | 1839 core.List<SortSpec> sortSpecs; |
1767 | 1840 |
1768 BasicFilter(); | 1841 BasicFilter(); |
1769 | 1842 |
1770 BasicFilter.fromJson(core.Map _json) { | 1843 BasicFilter.fromJson(core.Map _json) { |
1771 if (_json.containsKey("criteria")) { | 1844 if (_json.containsKey("criteria")) { |
1772 criteria = commons.mapMap(_json["criteria"], (item) => new FilterCriteria.
fromJson(item)); | 1845 criteria = commons.mapMap<core.Map<core.String, core.Object>, FilterCriter
ia>(_json["criteria"], (core.Map<core.String, core.Object> item) => new FilterCr
iteria.fromJson(item)); |
1773 } | 1846 } |
1774 if (_json.containsKey("range")) { | 1847 if (_json.containsKey("range")) { |
1775 range = new GridRange.fromJson(_json["range"]); | 1848 range = new GridRange.fromJson(_json["range"]); |
1776 } | 1849 } |
1777 if (_json.containsKey("sortSpecs")) { | 1850 if (_json.containsKey("sortSpecs")) { |
1778 sortSpecs = _json["sortSpecs"].map((value) => new SortSpec.fromJson(value)
).toList(); | 1851 sortSpecs = _json["sortSpecs"].map((value) => new SortSpec.fromJson(value)
).toList(); |
1779 } | 1852 } |
1780 } | 1853 } |
1781 | 1854 |
1782 core.Map toJson() { | 1855 core.Map<core.String, core.Object> toJson() { |
1783 var _json = new core.Map(); | 1856 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1784 if (criteria != null) { | 1857 if (criteria != null) { |
1785 _json["criteria"] = commons.mapMap(criteria, (item) => (item).toJson()); | 1858 _json["criteria"] = commons.mapMap<FilterCriteria, core.Map<core.String, c
ore.Object>>(criteria, (FilterCriteria item) => (item).toJson()); |
1786 } | 1859 } |
1787 if (range != null) { | 1860 if (range != null) { |
1788 _json["range"] = (range).toJson(); | 1861 _json["range"] = (range).toJson(); |
1789 } | 1862 } |
1790 if (sortSpecs != null) { | 1863 if (sortSpecs != null) { |
1791 _json["sortSpecs"] = sortSpecs.map((value) => (value).toJson()).toList(); | 1864 _json["sortSpecs"] = sortSpecs.map((value) => (value).toJson()).toList(); |
1792 } | 1865 } |
1793 return _json; | 1866 return _json; |
1794 } | 1867 } |
1795 } | 1868 } |
1796 | 1869 |
1797 /** The request for clearing more than one range of values in a spreadsheet. */ | 1870 /** The request for clearing more than one range of values in a spreadsheet. */ |
1798 class BatchClearValuesRequest { | 1871 class BatchClearValuesRequest { |
1799 /** The ranges to clear, in A1 notation. */ | 1872 /** The ranges to clear, in A1 notation. */ |
1800 core.List<core.String> ranges; | 1873 core.List<core.String> ranges; |
1801 | 1874 |
1802 BatchClearValuesRequest(); | 1875 BatchClearValuesRequest(); |
1803 | 1876 |
1804 BatchClearValuesRequest.fromJson(core.Map _json) { | 1877 BatchClearValuesRequest.fromJson(core.Map _json) { |
1805 if (_json.containsKey("ranges")) { | 1878 if (_json.containsKey("ranges")) { |
1806 ranges = _json["ranges"]; | 1879 ranges = _json["ranges"]; |
1807 } | 1880 } |
1808 } | 1881 } |
1809 | 1882 |
1810 core.Map toJson() { | 1883 core.Map<core.String, core.Object> toJson() { |
1811 var _json = new core.Map(); | 1884 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1812 if (ranges != null) { | 1885 if (ranges != null) { |
1813 _json["ranges"] = ranges; | 1886 _json["ranges"] = ranges; |
1814 } | 1887 } |
1815 return _json; | 1888 return _json; |
1816 } | 1889 } |
1817 } | 1890 } |
1818 | 1891 |
1819 /** The response when clearing a range of values in a spreadsheet. */ | 1892 /** The response when clearing a range of values in a spreadsheet. */ |
1820 class BatchClearValuesResponse { | 1893 class BatchClearValuesResponse { |
1821 /** | 1894 /** |
(...skipping 10 matching lines...) Expand all Loading... |
1832 | 1905 |
1833 BatchClearValuesResponse.fromJson(core.Map _json) { | 1906 BatchClearValuesResponse.fromJson(core.Map _json) { |
1834 if (_json.containsKey("clearedRanges")) { | 1907 if (_json.containsKey("clearedRanges")) { |
1835 clearedRanges = _json["clearedRanges"]; | 1908 clearedRanges = _json["clearedRanges"]; |
1836 } | 1909 } |
1837 if (_json.containsKey("spreadsheetId")) { | 1910 if (_json.containsKey("spreadsheetId")) { |
1838 spreadsheetId = _json["spreadsheetId"]; | 1911 spreadsheetId = _json["spreadsheetId"]; |
1839 } | 1912 } |
1840 } | 1913 } |
1841 | 1914 |
1842 core.Map toJson() { | 1915 core.Map<core.String, core.Object> toJson() { |
1843 var _json = new core.Map(); | 1916 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1844 if (clearedRanges != null) { | 1917 if (clearedRanges != null) { |
1845 _json["clearedRanges"] = clearedRanges; | 1918 _json["clearedRanges"] = clearedRanges; |
1846 } | 1919 } |
1847 if (spreadsheetId != null) { | 1920 if (spreadsheetId != null) { |
1848 _json["spreadsheetId"] = spreadsheetId; | 1921 _json["spreadsheetId"] = spreadsheetId; |
1849 } | 1922 } |
1850 return _json; | 1923 return _json; |
1851 } | 1924 } |
1852 } | 1925 } |
1853 | 1926 |
(...skipping 13 matching lines...) Expand all Loading... |
1867 | 1940 |
1868 BatchGetValuesResponse.fromJson(core.Map _json) { | 1941 BatchGetValuesResponse.fromJson(core.Map _json) { |
1869 if (_json.containsKey("spreadsheetId")) { | 1942 if (_json.containsKey("spreadsheetId")) { |
1870 spreadsheetId = _json["spreadsheetId"]; | 1943 spreadsheetId = _json["spreadsheetId"]; |
1871 } | 1944 } |
1872 if (_json.containsKey("valueRanges")) { | 1945 if (_json.containsKey("valueRanges")) { |
1873 valueRanges = _json["valueRanges"].map((value) => new ValueRange.fromJson(
value)).toList(); | 1946 valueRanges = _json["valueRanges"].map((value) => new ValueRange.fromJson(
value)).toList(); |
1874 } | 1947 } |
1875 } | 1948 } |
1876 | 1949 |
1877 core.Map toJson() { | 1950 core.Map<core.String, core.Object> toJson() { |
1878 var _json = new core.Map(); | 1951 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1879 if (spreadsheetId != null) { | 1952 if (spreadsheetId != null) { |
1880 _json["spreadsheetId"] = spreadsheetId; | 1953 _json["spreadsheetId"] = spreadsheetId; |
1881 } | 1954 } |
1882 if (valueRanges != null) { | 1955 if (valueRanges != null) { |
1883 _json["valueRanges"] = valueRanges.map((value) => (value).toJson()).toList
(); | 1956 _json["valueRanges"] = valueRanges.map((value) => (value).toJson()).toList
(); |
1884 } | 1957 } |
1885 return _json; | 1958 return _json; |
1886 } | 1959 } |
1887 } | 1960 } |
1888 | 1961 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1921 requests = _json["requests"].map((value) => new Request.fromJson(value)).t
oList(); | 1994 requests = _json["requests"].map((value) => new Request.fromJson(value)).t
oList(); |
1922 } | 1995 } |
1923 if (_json.containsKey("responseIncludeGridData")) { | 1996 if (_json.containsKey("responseIncludeGridData")) { |
1924 responseIncludeGridData = _json["responseIncludeGridData"]; | 1997 responseIncludeGridData = _json["responseIncludeGridData"]; |
1925 } | 1998 } |
1926 if (_json.containsKey("responseRanges")) { | 1999 if (_json.containsKey("responseRanges")) { |
1927 responseRanges = _json["responseRanges"]; | 2000 responseRanges = _json["responseRanges"]; |
1928 } | 2001 } |
1929 } | 2002 } |
1930 | 2003 |
1931 core.Map toJson() { | 2004 core.Map<core.String, core.Object> toJson() { |
1932 var _json = new core.Map(); | 2005 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1933 if (includeSpreadsheetInResponse != null) { | 2006 if (includeSpreadsheetInResponse != null) { |
1934 _json["includeSpreadsheetInResponse"] = includeSpreadsheetInResponse; | 2007 _json["includeSpreadsheetInResponse"] = includeSpreadsheetInResponse; |
1935 } | 2008 } |
1936 if (requests != null) { | 2009 if (requests != null) { |
1937 _json["requests"] = requests.map((value) => (value).toJson()).toList(); | 2010 _json["requests"] = requests.map((value) => (value).toJson()).toList(); |
1938 } | 2011 } |
1939 if (responseIncludeGridData != null) { | 2012 if (responseIncludeGridData != null) { |
1940 _json["responseIncludeGridData"] = responseIncludeGridData; | 2013 _json["responseIncludeGridData"] = responseIncludeGridData; |
1941 } | 2014 } |
1942 if (responseRanges != null) { | 2015 if (responseRanges != null) { |
(...skipping 25 matching lines...) Expand all Loading... |
1968 replies = _json["replies"].map((value) => new Response.fromJson(value)).to
List(); | 2041 replies = _json["replies"].map((value) => new Response.fromJson(value)).to
List(); |
1969 } | 2042 } |
1970 if (_json.containsKey("spreadsheetId")) { | 2043 if (_json.containsKey("spreadsheetId")) { |
1971 spreadsheetId = _json["spreadsheetId"]; | 2044 spreadsheetId = _json["spreadsheetId"]; |
1972 } | 2045 } |
1973 if (_json.containsKey("updatedSpreadsheet")) { | 2046 if (_json.containsKey("updatedSpreadsheet")) { |
1974 updatedSpreadsheet = new Spreadsheet.fromJson(_json["updatedSpreadsheet"])
; | 2047 updatedSpreadsheet = new Spreadsheet.fromJson(_json["updatedSpreadsheet"])
; |
1975 } | 2048 } |
1976 } | 2049 } |
1977 | 2050 |
1978 core.Map toJson() { | 2051 core.Map<core.String, core.Object> toJson() { |
1979 var _json = new core.Map(); | 2052 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1980 if (replies != null) { | 2053 if (replies != null) { |
1981 _json["replies"] = replies.map((value) => (value).toJson()).toList(); | 2054 _json["replies"] = replies.map((value) => (value).toJson()).toList(); |
1982 } | 2055 } |
1983 if (spreadsheetId != null) { | 2056 if (spreadsheetId != null) { |
1984 _json["spreadsheetId"] = spreadsheetId; | 2057 _json["spreadsheetId"] = spreadsheetId; |
1985 } | 2058 } |
1986 if (updatedSpreadsheet != null) { | 2059 if (updatedSpreadsheet != null) { |
1987 _json["updatedSpreadsheet"] = (updatedSpreadsheet).toJson(); | 2060 _json["updatedSpreadsheet"] = (updatedSpreadsheet).toJson(); |
1988 } | 2061 } |
1989 return _json; | 2062 return _json; |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2076 responseDateTimeRenderOption = _json["responseDateTimeRenderOption"]; | 2149 responseDateTimeRenderOption = _json["responseDateTimeRenderOption"]; |
2077 } | 2150 } |
2078 if (_json.containsKey("responseValueRenderOption")) { | 2151 if (_json.containsKey("responseValueRenderOption")) { |
2079 responseValueRenderOption = _json["responseValueRenderOption"]; | 2152 responseValueRenderOption = _json["responseValueRenderOption"]; |
2080 } | 2153 } |
2081 if (_json.containsKey("valueInputOption")) { | 2154 if (_json.containsKey("valueInputOption")) { |
2082 valueInputOption = _json["valueInputOption"]; | 2155 valueInputOption = _json["valueInputOption"]; |
2083 } | 2156 } |
2084 } | 2157 } |
2085 | 2158 |
2086 core.Map toJson() { | 2159 core.Map<core.String, core.Object> toJson() { |
2087 var _json = new core.Map(); | 2160 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2088 if (data != null) { | 2161 if (data != null) { |
2089 _json["data"] = data.map((value) => (value).toJson()).toList(); | 2162 _json["data"] = data.map((value) => (value).toJson()).toList(); |
2090 } | 2163 } |
2091 if (includeValuesInResponse != null) { | 2164 if (includeValuesInResponse != null) { |
2092 _json["includeValuesInResponse"] = includeValuesInResponse; | 2165 _json["includeValuesInResponse"] = includeValuesInResponse; |
2093 } | 2166 } |
2094 if (responseDateTimeRenderOption != null) { | 2167 if (responseDateTimeRenderOption != null) { |
2095 _json["responseDateTimeRenderOption"] = responseDateTimeRenderOption; | 2168 _json["responseDateTimeRenderOption"] = responseDateTimeRenderOption; |
2096 } | 2169 } |
2097 if (responseValueRenderOption != null) { | 2170 if (responseValueRenderOption != null) { |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2146 totalUpdatedColumns = _json["totalUpdatedColumns"]; | 2219 totalUpdatedColumns = _json["totalUpdatedColumns"]; |
2147 } | 2220 } |
2148 if (_json.containsKey("totalUpdatedRows")) { | 2221 if (_json.containsKey("totalUpdatedRows")) { |
2149 totalUpdatedRows = _json["totalUpdatedRows"]; | 2222 totalUpdatedRows = _json["totalUpdatedRows"]; |
2150 } | 2223 } |
2151 if (_json.containsKey("totalUpdatedSheets")) { | 2224 if (_json.containsKey("totalUpdatedSheets")) { |
2152 totalUpdatedSheets = _json["totalUpdatedSheets"]; | 2225 totalUpdatedSheets = _json["totalUpdatedSheets"]; |
2153 } | 2226 } |
2154 } | 2227 } |
2155 | 2228 |
2156 core.Map toJson() { | 2229 core.Map<core.String, core.Object> toJson() { |
2157 var _json = new core.Map(); | 2230 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2158 if (responses != null) { | 2231 if (responses != null) { |
2159 _json["responses"] = responses.map((value) => (value).toJson()).toList(); | 2232 _json["responses"] = responses.map((value) => (value).toJson()).toList(); |
2160 } | 2233 } |
2161 if (spreadsheetId != null) { | 2234 if (spreadsheetId != null) { |
2162 _json["spreadsheetId"] = spreadsheetId; | 2235 _json["spreadsheetId"] = spreadsheetId; |
2163 } | 2236 } |
2164 if (totalUpdatedCells != null) { | 2237 if (totalUpdatedCells != null) { |
2165 _json["totalUpdatedCells"] = totalUpdatedCells; | 2238 _json["totalUpdatedCells"] = totalUpdatedCells; |
2166 } | 2239 } |
2167 if (totalUpdatedColumns != null) { | 2240 if (totalUpdatedColumns != null) { |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2308 | 2381 |
2309 BooleanCondition.fromJson(core.Map _json) { | 2382 BooleanCondition.fromJson(core.Map _json) { |
2310 if (_json.containsKey("type")) { | 2383 if (_json.containsKey("type")) { |
2311 type = _json["type"]; | 2384 type = _json["type"]; |
2312 } | 2385 } |
2313 if (_json.containsKey("values")) { | 2386 if (_json.containsKey("values")) { |
2314 values = _json["values"].map((value) => new ConditionValue.fromJson(value)
).toList(); | 2387 values = _json["values"].map((value) => new ConditionValue.fromJson(value)
).toList(); |
2315 } | 2388 } |
2316 } | 2389 } |
2317 | 2390 |
2318 core.Map toJson() { | 2391 core.Map<core.String, core.Object> toJson() { |
2319 var _json = new core.Map(); | 2392 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2320 if (type != null) { | 2393 if (type != null) { |
2321 _json["type"] = type; | 2394 _json["type"] = type; |
2322 } | 2395 } |
2323 if (values != null) { | 2396 if (values != null) { |
2324 _json["values"] = values.map((value) => (value).toJson()).toList(); | 2397 _json["values"] = values.map((value) => (value).toJson()).toList(); |
2325 } | 2398 } |
2326 return _json; | 2399 return _json; |
2327 } | 2400 } |
2328 } | 2401 } |
2329 | 2402 |
(...skipping 18 matching lines...) Expand all Loading... |
2348 | 2421 |
2349 BooleanRule.fromJson(core.Map _json) { | 2422 BooleanRule.fromJson(core.Map _json) { |
2350 if (_json.containsKey("condition")) { | 2423 if (_json.containsKey("condition")) { |
2351 condition = new BooleanCondition.fromJson(_json["condition"]); | 2424 condition = new BooleanCondition.fromJson(_json["condition"]); |
2352 } | 2425 } |
2353 if (_json.containsKey("format")) { | 2426 if (_json.containsKey("format")) { |
2354 format = new CellFormat.fromJson(_json["format"]); | 2427 format = new CellFormat.fromJson(_json["format"]); |
2355 } | 2428 } |
2356 } | 2429 } |
2357 | 2430 |
2358 core.Map toJson() { | 2431 core.Map<core.String, core.Object> toJson() { |
2359 var _json = new core.Map(); | 2432 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2360 if (condition != null) { | 2433 if (condition != null) { |
2361 _json["condition"] = (condition).toJson(); | 2434 _json["condition"] = (condition).toJson(); |
2362 } | 2435 } |
2363 if (format != null) { | 2436 if (format != null) { |
2364 _json["format"] = (format).toJson(); | 2437 _json["format"] = (format).toJson(); |
2365 } | 2438 } |
2366 return _json; | 2439 return _json; |
2367 } | 2440 } |
2368 } | 2441 } |
2369 | 2442 |
(...skipping 28 matching lines...) Expand all Loading... |
2398 color = new Color.fromJson(_json["color"]); | 2471 color = new Color.fromJson(_json["color"]); |
2399 } | 2472 } |
2400 if (_json.containsKey("style")) { | 2473 if (_json.containsKey("style")) { |
2401 style = _json["style"]; | 2474 style = _json["style"]; |
2402 } | 2475 } |
2403 if (_json.containsKey("width")) { | 2476 if (_json.containsKey("width")) { |
2404 width = _json["width"]; | 2477 width = _json["width"]; |
2405 } | 2478 } |
2406 } | 2479 } |
2407 | 2480 |
2408 core.Map toJson() { | 2481 core.Map<core.String, core.Object> toJson() { |
2409 var _json = new core.Map(); | 2482 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2410 if (color != null) { | 2483 if (color != null) { |
2411 _json["color"] = (color).toJson(); | 2484 _json["color"] = (color).toJson(); |
2412 } | 2485 } |
2413 if (style != null) { | 2486 if (style != null) { |
2414 _json["style"] = style; | 2487 _json["style"] = style; |
2415 } | 2488 } |
2416 if (width != null) { | 2489 if (width != null) { |
2417 _json["width"] = width; | 2490 _json["width"] = width; |
2418 } | 2491 } |
2419 return _json; | 2492 return _json; |
(...skipping 21 matching lines...) Expand all Loading... |
2441 left = new Border.fromJson(_json["left"]); | 2514 left = new Border.fromJson(_json["left"]); |
2442 } | 2515 } |
2443 if (_json.containsKey("right")) { | 2516 if (_json.containsKey("right")) { |
2444 right = new Border.fromJson(_json["right"]); | 2517 right = new Border.fromJson(_json["right"]); |
2445 } | 2518 } |
2446 if (_json.containsKey("top")) { | 2519 if (_json.containsKey("top")) { |
2447 top = new Border.fromJson(_json["top"]); | 2520 top = new Border.fromJson(_json["top"]); |
2448 } | 2521 } |
2449 } | 2522 } |
2450 | 2523 |
2451 core.Map toJson() { | 2524 core.Map<core.String, core.Object> toJson() { |
2452 var _json = new core.Map(); | 2525 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2453 if (bottom != null) { | 2526 if (bottom != null) { |
2454 _json["bottom"] = (bottom).toJson(); | 2527 _json["bottom"] = (bottom).toJson(); |
2455 } | 2528 } |
2456 if (left != null) { | 2529 if (left != null) { |
2457 _json["left"] = (left).toJson(); | 2530 _json["left"] = (left).toJson(); |
2458 } | 2531 } |
2459 if (right != null) { | 2532 if (right != null) { |
2460 _json["right"] = (right).toJson(); | 2533 _json["right"] = (right).toJson(); |
2461 } | 2534 } |
2462 if (top != null) { | 2535 if (top != null) { |
2463 _json["top"] = (top).toJson(); | 2536 _json["top"] = (top).toJson(); |
2464 } | 2537 } |
2465 return _json; | 2538 return _json; |
2466 } | 2539 } |
2467 } | 2540 } |
2468 | 2541 |
| 2542 /** |
| 2543 * A <a href="/chart/interactive/docs/gallery/bubblechart">bubble chart</a>. |
| 2544 */ |
| 2545 class BubbleChartSpec { |
| 2546 /** The bubble border color. */ |
| 2547 Color bubbleBorderColor; |
| 2548 /** |
| 2549 * The data containing the bubble labels. These do not need to be unique. |
| 2550 */ |
| 2551 ChartData bubbleLabels; |
| 2552 /** |
| 2553 * The max radius size of the bubbles, in pixels. |
| 2554 * If specified, the field must be a positive value. |
| 2555 */ |
| 2556 core.int bubbleMaxRadiusSize; |
| 2557 /** |
| 2558 * The minimum radius size of the bubbles, in pixels. |
| 2559 * If specific, the field must be a positive value. |
| 2560 */ |
| 2561 core.int bubbleMinRadiusSize; |
| 2562 /** |
| 2563 * The opacity of the bubbles between 0 and 1.0. |
| 2564 * 0 is fully transparent and 1 is fully opaque. |
| 2565 */ |
| 2566 core.double bubbleOpacity; |
| 2567 /** |
| 2568 * The data contianing the bubble sizes. Bubble sizes are used to draw |
| 2569 * the bubbles at different sizes relative to each other. |
| 2570 * If specified, group_ids must also be specified. This field is |
| 2571 * optional. |
| 2572 */ |
| 2573 ChartData bubbleSizes; |
| 2574 /** |
| 2575 * The format of the text inside the bubbles. |
| 2576 * Underline and Strikethrough are not supported. |
| 2577 */ |
| 2578 TextFormat bubbleTextStyle; |
| 2579 /** |
| 2580 * The data containing the bubble x-values. These values locate the bubbles |
| 2581 * in the chart horizontally. |
| 2582 */ |
| 2583 ChartData domain; |
| 2584 /** |
| 2585 * The data containing the bubble group IDs. All bubbles with the same group |
| 2586 * ID will be drawn in the same color. If bubble_sizes is specified then |
| 2587 * this field must also be specified but may contain blank values. |
| 2588 * This field is optional. |
| 2589 */ |
| 2590 ChartData groupIds; |
| 2591 /** |
| 2592 * Where the legend of the chart should be drawn. |
| 2593 * Possible string values are: |
| 2594 * - "BUBBLE_CHART_LEGEND_POSITION_UNSPECIFIED" : Default value, do not use. |
| 2595 * - "BOTTOM_LEGEND" : The legend is rendered on the bottom of the chart. |
| 2596 * - "LEFT_LEGEND" : The legend is rendered on the left of the chart. |
| 2597 * - "RIGHT_LEGEND" : The legend is rendered on the right of the chart. |
| 2598 * - "TOP_LEGEND" : The legend is rendered on the top of the chart. |
| 2599 * - "NO_LEGEND" : No legend is rendered. |
| 2600 * - "INSIDE_LEGEND" : The legend is rendered inside the chart area. |
| 2601 */ |
| 2602 core.String legendPosition; |
| 2603 /** |
| 2604 * The data contianing the bubble y-values. These values locate the bubbles |
| 2605 * in the chart vertically. |
| 2606 */ |
| 2607 ChartData series; |
| 2608 |
| 2609 BubbleChartSpec(); |
| 2610 |
| 2611 BubbleChartSpec.fromJson(core.Map _json) { |
| 2612 if (_json.containsKey("bubbleBorderColor")) { |
| 2613 bubbleBorderColor = new Color.fromJson(_json["bubbleBorderColor"]); |
| 2614 } |
| 2615 if (_json.containsKey("bubbleLabels")) { |
| 2616 bubbleLabels = new ChartData.fromJson(_json["bubbleLabels"]); |
| 2617 } |
| 2618 if (_json.containsKey("bubbleMaxRadiusSize")) { |
| 2619 bubbleMaxRadiusSize = _json["bubbleMaxRadiusSize"]; |
| 2620 } |
| 2621 if (_json.containsKey("bubbleMinRadiusSize")) { |
| 2622 bubbleMinRadiusSize = _json["bubbleMinRadiusSize"]; |
| 2623 } |
| 2624 if (_json.containsKey("bubbleOpacity")) { |
| 2625 bubbleOpacity = _json["bubbleOpacity"]; |
| 2626 } |
| 2627 if (_json.containsKey("bubbleSizes")) { |
| 2628 bubbleSizes = new ChartData.fromJson(_json["bubbleSizes"]); |
| 2629 } |
| 2630 if (_json.containsKey("bubbleTextStyle")) { |
| 2631 bubbleTextStyle = new TextFormat.fromJson(_json["bubbleTextStyle"]); |
| 2632 } |
| 2633 if (_json.containsKey("domain")) { |
| 2634 domain = new ChartData.fromJson(_json["domain"]); |
| 2635 } |
| 2636 if (_json.containsKey("groupIds")) { |
| 2637 groupIds = new ChartData.fromJson(_json["groupIds"]); |
| 2638 } |
| 2639 if (_json.containsKey("legendPosition")) { |
| 2640 legendPosition = _json["legendPosition"]; |
| 2641 } |
| 2642 if (_json.containsKey("series")) { |
| 2643 series = new ChartData.fromJson(_json["series"]); |
| 2644 } |
| 2645 } |
| 2646 |
| 2647 core.Map<core.String, core.Object> toJson() { |
| 2648 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2649 if (bubbleBorderColor != null) { |
| 2650 _json["bubbleBorderColor"] = (bubbleBorderColor).toJson(); |
| 2651 } |
| 2652 if (bubbleLabels != null) { |
| 2653 _json["bubbleLabels"] = (bubbleLabels).toJson(); |
| 2654 } |
| 2655 if (bubbleMaxRadiusSize != null) { |
| 2656 _json["bubbleMaxRadiusSize"] = bubbleMaxRadiusSize; |
| 2657 } |
| 2658 if (bubbleMinRadiusSize != null) { |
| 2659 _json["bubbleMinRadiusSize"] = bubbleMinRadiusSize; |
| 2660 } |
| 2661 if (bubbleOpacity != null) { |
| 2662 _json["bubbleOpacity"] = bubbleOpacity; |
| 2663 } |
| 2664 if (bubbleSizes != null) { |
| 2665 _json["bubbleSizes"] = (bubbleSizes).toJson(); |
| 2666 } |
| 2667 if (bubbleTextStyle != null) { |
| 2668 _json["bubbleTextStyle"] = (bubbleTextStyle).toJson(); |
| 2669 } |
| 2670 if (domain != null) { |
| 2671 _json["domain"] = (domain).toJson(); |
| 2672 } |
| 2673 if (groupIds != null) { |
| 2674 _json["groupIds"] = (groupIds).toJson(); |
| 2675 } |
| 2676 if (legendPosition != null) { |
| 2677 _json["legendPosition"] = legendPosition; |
| 2678 } |
| 2679 if (series != null) { |
| 2680 _json["series"] = (series).toJson(); |
| 2681 } |
| 2682 return _json; |
| 2683 } |
| 2684 } |
| 2685 |
| 2686 /** |
| 2687 * A <a href="/chart/interactive/docs/gallery/candlestickchart">candlestick |
| 2688 * chart</a>. |
| 2689 */ |
| 2690 class CandlestickChartSpec { |
| 2691 /** |
| 2692 * The Candlestick chart data. |
| 2693 * Only one CandlestickData is supported. |
| 2694 */ |
| 2695 core.List<CandlestickData> data; |
| 2696 /** |
| 2697 * The domain data (horizontal axis) for the candlestick chart. String data |
| 2698 * will be treated as discrete labels, other data will be treated as continous |
| 2699 * values. |
| 2700 */ |
| 2701 CandlestickDomain domain; |
| 2702 |
| 2703 CandlestickChartSpec(); |
| 2704 |
| 2705 CandlestickChartSpec.fromJson(core.Map _json) { |
| 2706 if (_json.containsKey("data")) { |
| 2707 data = _json["data"].map((value) => new CandlestickData.fromJson(value)).t
oList(); |
| 2708 } |
| 2709 if (_json.containsKey("domain")) { |
| 2710 domain = new CandlestickDomain.fromJson(_json["domain"]); |
| 2711 } |
| 2712 } |
| 2713 |
| 2714 core.Map<core.String, core.Object> toJson() { |
| 2715 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2716 if (data != null) { |
| 2717 _json["data"] = data.map((value) => (value).toJson()).toList(); |
| 2718 } |
| 2719 if (domain != null) { |
| 2720 _json["domain"] = (domain).toJson(); |
| 2721 } |
| 2722 return _json; |
| 2723 } |
| 2724 } |
| 2725 |
| 2726 /** |
| 2727 * The Candlestick chart data, each containing the low, open, close, and high |
| 2728 * values for a series. |
| 2729 */ |
| 2730 class CandlestickData { |
| 2731 /** |
| 2732 * The range data (vertical axis) for the close/final value for each candle. |
| 2733 * This is the top of the candle body. If greater than the open value the |
| 2734 * candle will be filled. Otherwise the candle will be hollow. |
| 2735 */ |
| 2736 CandlestickSeries closeSeries; |
| 2737 /** |
| 2738 * The range data (vertical axis) for the high/maximum value for each |
| 2739 * candle. This is the top of the candle's center line. |
| 2740 */ |
| 2741 CandlestickSeries highSeries; |
| 2742 /** |
| 2743 * The range data (vertical axis) for the low/minimum value for each candle. |
| 2744 * This is the bottom of the candle's center line. |
| 2745 */ |
| 2746 CandlestickSeries lowSeries; |
| 2747 /** |
| 2748 * The range data (vertical axis) for the open/initial value for each |
| 2749 * candle. This is the bottom of the candle body. If less than the close |
| 2750 * value the candle will be filled. Otherwise the candle will be hollow. |
| 2751 */ |
| 2752 CandlestickSeries openSeries; |
| 2753 |
| 2754 CandlestickData(); |
| 2755 |
| 2756 CandlestickData.fromJson(core.Map _json) { |
| 2757 if (_json.containsKey("closeSeries")) { |
| 2758 closeSeries = new CandlestickSeries.fromJson(_json["closeSeries"]); |
| 2759 } |
| 2760 if (_json.containsKey("highSeries")) { |
| 2761 highSeries = new CandlestickSeries.fromJson(_json["highSeries"]); |
| 2762 } |
| 2763 if (_json.containsKey("lowSeries")) { |
| 2764 lowSeries = new CandlestickSeries.fromJson(_json["lowSeries"]); |
| 2765 } |
| 2766 if (_json.containsKey("openSeries")) { |
| 2767 openSeries = new CandlestickSeries.fromJson(_json["openSeries"]); |
| 2768 } |
| 2769 } |
| 2770 |
| 2771 core.Map<core.String, core.Object> toJson() { |
| 2772 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2773 if (closeSeries != null) { |
| 2774 _json["closeSeries"] = (closeSeries).toJson(); |
| 2775 } |
| 2776 if (highSeries != null) { |
| 2777 _json["highSeries"] = (highSeries).toJson(); |
| 2778 } |
| 2779 if (lowSeries != null) { |
| 2780 _json["lowSeries"] = (lowSeries).toJson(); |
| 2781 } |
| 2782 if (openSeries != null) { |
| 2783 _json["openSeries"] = (openSeries).toJson(); |
| 2784 } |
| 2785 return _json; |
| 2786 } |
| 2787 } |
| 2788 |
| 2789 /** The domain of a CandlestickChart. */ |
| 2790 class CandlestickDomain { |
| 2791 /** The data of the CandlestickDomain. */ |
| 2792 ChartData data; |
| 2793 |
| 2794 CandlestickDomain(); |
| 2795 |
| 2796 CandlestickDomain.fromJson(core.Map _json) { |
| 2797 if (_json.containsKey("data")) { |
| 2798 data = new ChartData.fromJson(_json["data"]); |
| 2799 } |
| 2800 } |
| 2801 |
| 2802 core.Map<core.String, core.Object> toJson() { |
| 2803 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2804 if (data != null) { |
| 2805 _json["data"] = (data).toJson(); |
| 2806 } |
| 2807 return _json; |
| 2808 } |
| 2809 } |
| 2810 |
| 2811 /** The series of a CandlestickData. */ |
| 2812 class CandlestickSeries { |
| 2813 /** The data of the CandlestickSeries. */ |
| 2814 ChartData data; |
| 2815 |
| 2816 CandlestickSeries(); |
| 2817 |
| 2818 CandlestickSeries.fromJson(core.Map _json) { |
| 2819 if (_json.containsKey("data")) { |
| 2820 data = new ChartData.fromJson(_json["data"]); |
| 2821 } |
| 2822 } |
| 2823 |
| 2824 core.Map<core.String, core.Object> toJson() { |
| 2825 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2826 if (data != null) { |
| 2827 _json["data"] = (data).toJson(); |
| 2828 } |
| 2829 return _json; |
| 2830 } |
| 2831 } |
| 2832 |
2469 /** Data about a specific cell. */ | 2833 /** Data about a specific cell. */ |
2470 class CellData { | 2834 class CellData { |
2471 /** | 2835 /** |
2472 * A data validation rule on the cell, if any. | 2836 * A data validation rule on the cell, if any. |
2473 * | 2837 * |
2474 * When writing, the new data validation rule will overwrite any prior rule. | 2838 * When writing, the new data validation rule will overwrite any prior rule. |
2475 */ | 2839 */ |
2476 DataValidationRule dataValidation; | 2840 DataValidationRule dataValidation; |
2477 /** | 2841 /** |
2478 * The effective format being used by the cell. | 2842 * The effective format being used by the cell. |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2566 textFormatRuns = _json["textFormatRuns"].map((value) => new TextFormatRun.
fromJson(value)).toList(); | 2930 textFormatRuns = _json["textFormatRuns"].map((value) => new TextFormatRun.
fromJson(value)).toList(); |
2567 } | 2931 } |
2568 if (_json.containsKey("userEnteredFormat")) { | 2932 if (_json.containsKey("userEnteredFormat")) { |
2569 userEnteredFormat = new CellFormat.fromJson(_json["userEnteredFormat"]); | 2933 userEnteredFormat = new CellFormat.fromJson(_json["userEnteredFormat"]); |
2570 } | 2934 } |
2571 if (_json.containsKey("userEnteredValue")) { | 2935 if (_json.containsKey("userEnteredValue")) { |
2572 userEnteredValue = new ExtendedValue.fromJson(_json["userEnteredValue"]); | 2936 userEnteredValue = new ExtendedValue.fromJson(_json["userEnteredValue"]); |
2573 } | 2937 } |
2574 } | 2938 } |
2575 | 2939 |
2576 core.Map toJson() { | 2940 core.Map<core.String, core.Object> toJson() { |
2577 var _json = new core.Map(); | 2941 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2578 if (dataValidation != null) { | 2942 if (dataValidation != null) { |
2579 _json["dataValidation"] = (dataValidation).toJson(); | 2943 _json["dataValidation"] = (dataValidation).toJson(); |
2580 } | 2944 } |
2581 if (effectiveFormat != null) { | 2945 if (effectiveFormat != null) { |
2582 _json["effectiveFormat"] = (effectiveFormat).toJson(); | 2946 _json["effectiveFormat"] = (effectiveFormat).toJson(); |
2583 } | 2947 } |
2584 if (effectiveValue != null) { | 2948 if (effectiveValue != null) { |
2585 _json["effectiveValue"] = (effectiveValue).toJson(); | 2949 _json["effectiveValue"] = (effectiveValue).toJson(); |
2586 } | 2950 } |
2587 if (formattedValue != null) { | 2951 if (formattedValue != null) { |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2740 textRotation = new TextRotation.fromJson(_json["textRotation"]); | 3104 textRotation = new TextRotation.fromJson(_json["textRotation"]); |
2741 } | 3105 } |
2742 if (_json.containsKey("verticalAlignment")) { | 3106 if (_json.containsKey("verticalAlignment")) { |
2743 verticalAlignment = _json["verticalAlignment"]; | 3107 verticalAlignment = _json["verticalAlignment"]; |
2744 } | 3108 } |
2745 if (_json.containsKey("wrapStrategy")) { | 3109 if (_json.containsKey("wrapStrategy")) { |
2746 wrapStrategy = _json["wrapStrategy"]; | 3110 wrapStrategy = _json["wrapStrategy"]; |
2747 } | 3111 } |
2748 } | 3112 } |
2749 | 3113 |
2750 core.Map toJson() { | 3114 core.Map<core.String, core.Object> toJson() { |
2751 var _json = new core.Map(); | 3115 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2752 if (backgroundColor != null) { | 3116 if (backgroundColor != null) { |
2753 _json["backgroundColor"] = (backgroundColor).toJson(); | 3117 _json["backgroundColor"] = (backgroundColor).toJson(); |
2754 } | 3118 } |
2755 if (borders != null) { | 3119 if (borders != null) { |
2756 _json["borders"] = (borders).toJson(); | 3120 _json["borders"] = (borders).toJson(); |
2757 } | 3121 } |
2758 if (horizontalAlignment != null) { | 3122 if (horizontalAlignment != null) { |
2759 _json["horizontalAlignment"] = horizontalAlignment; | 3123 _json["horizontalAlignment"] = horizontalAlignment; |
2760 } | 3124 } |
2761 if (hyperlinkDisplayType != null) { | 3125 if (hyperlinkDisplayType != null) { |
(...skipping 30 matching lines...) Expand all Loading... |
2792 ChartSourceRange sourceRange; | 3156 ChartSourceRange sourceRange; |
2793 | 3157 |
2794 ChartData(); | 3158 ChartData(); |
2795 | 3159 |
2796 ChartData.fromJson(core.Map _json) { | 3160 ChartData.fromJson(core.Map _json) { |
2797 if (_json.containsKey("sourceRange")) { | 3161 if (_json.containsKey("sourceRange")) { |
2798 sourceRange = new ChartSourceRange.fromJson(_json["sourceRange"]); | 3162 sourceRange = new ChartSourceRange.fromJson(_json["sourceRange"]); |
2799 } | 3163 } |
2800 } | 3164 } |
2801 | 3165 |
2802 core.Map toJson() { | 3166 core.Map<core.String, core.Object> toJson() { |
2803 var _json = new core.Map(); | 3167 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2804 if (sourceRange != null) { | 3168 if (sourceRange != null) { |
2805 _json["sourceRange"] = (sourceRange).toJson(); | 3169 _json["sourceRange"] = (sourceRange).toJson(); |
2806 } | 3170 } |
2807 return _json; | 3171 return _json; |
2808 } | 3172 } |
2809 } | 3173 } |
2810 | 3174 |
2811 /** Source ranges for a chart. */ | 3175 /** Source ranges for a chart. */ |
2812 class ChartSourceRange { | 3176 class ChartSourceRange { |
2813 /** | 3177 /** |
(...skipping 18 matching lines...) Expand all Loading... |
2832 core.List<GridRange> sources; | 3196 core.List<GridRange> sources; |
2833 | 3197 |
2834 ChartSourceRange(); | 3198 ChartSourceRange(); |
2835 | 3199 |
2836 ChartSourceRange.fromJson(core.Map _json) { | 3200 ChartSourceRange.fromJson(core.Map _json) { |
2837 if (_json.containsKey("sources")) { | 3201 if (_json.containsKey("sources")) { |
2838 sources = _json["sources"].map((value) => new GridRange.fromJson(value)).t
oList(); | 3202 sources = _json["sources"].map((value) => new GridRange.fromJson(value)).t
oList(); |
2839 } | 3203 } |
2840 } | 3204 } |
2841 | 3205 |
2842 core.Map toJson() { | 3206 core.Map<core.String, core.Object> toJson() { |
2843 var _json = new core.Map(); | 3207 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2844 if (sources != null) { | 3208 if (sources != null) { |
2845 _json["sources"] = sources.map((value) => (value).toJson()).toList(); | 3209 _json["sources"] = sources.map((value) => (value).toJson()).toList(); |
2846 } | 3210 } |
2847 return _json; | 3211 return _json; |
2848 } | 3212 } |
2849 } | 3213 } |
2850 | 3214 |
2851 /** The specifications of a chart. */ | 3215 /** The specifications of a chart. */ |
2852 class ChartSpec { | 3216 class ChartSpec { |
2853 /** | 3217 /** |
| 3218 * The background color of the entire chart. |
| 3219 * Not applicable to Org charts. |
| 3220 */ |
| 3221 Color backgroundColor; |
| 3222 /** |
2854 * A basic chart specification, can be one of many kinds of charts. | 3223 * A basic chart specification, can be one of many kinds of charts. |
2855 * See BasicChartType for the list of all | 3224 * See BasicChartType for the list of all |
2856 * charts this supports. | 3225 * charts this supports. |
2857 */ | 3226 */ |
2858 BasicChartSpec basicChart; | 3227 BasicChartSpec basicChart; |
| 3228 /** A bubble chart specification. */ |
| 3229 BubbleChartSpec bubbleChart; |
| 3230 /** A candlestick chart specification. */ |
| 3231 CandlestickChartSpec candlestickChart; |
| 3232 /** |
| 3233 * The name of the font to use by default for all chart text (e.g. title, |
| 3234 * axis labels, legend). If a font is specified for a specific part of the |
| 3235 * chart it will override this font name. |
| 3236 */ |
| 3237 core.String fontName; |
2859 /** | 3238 /** |
2860 * Determines how the charts will use hidden rows or columns. | 3239 * Determines how the charts will use hidden rows or columns. |
2861 * Possible string values are: | 3240 * Possible string values are: |
2862 * - "CHART_HIDDEN_DIMENSION_STRATEGY_UNSPECIFIED" : Default value, do not | 3241 * - "CHART_HIDDEN_DIMENSION_STRATEGY_UNSPECIFIED" : Default value, do not |
2863 * use. | 3242 * use. |
2864 * - "SKIP_HIDDEN_ROWS_AND_COLUMNS" : Charts will skip hidden rows and | 3243 * - "SKIP_HIDDEN_ROWS_AND_COLUMNS" : Charts will skip hidden rows and |
2865 * columns. | 3244 * columns. |
2866 * - "SKIP_HIDDEN_ROWS" : Charts will skip hidden rows only. | 3245 * - "SKIP_HIDDEN_ROWS" : Charts will skip hidden rows only. |
2867 * - "SKIP_HIDDEN_COLUMNS" : Charts will skip hidden columns only. | 3246 * - "SKIP_HIDDEN_COLUMNS" : Charts will skip hidden columns only. |
2868 * - "SHOW_ALL" : Charts will not skip any hidden rows or columns. | 3247 * - "SHOW_ALL" : Charts will not skip any hidden rows or columns. |
2869 */ | 3248 */ |
2870 core.String hiddenDimensionStrategy; | 3249 core.String hiddenDimensionStrategy; |
| 3250 /** A histogram chart specification. */ |
| 3251 HistogramChartSpec histogramChart; |
| 3252 /** |
| 3253 * True to make a chart fill the entire space in which it's rendered with |
| 3254 * minimum padding. False to use the default padding. |
| 3255 * (Not applicable to Geo and Org charts.) |
| 3256 */ |
| 3257 core.bool maximized; |
| 3258 /** An org chart specification. */ |
| 3259 OrgChartSpec orgChart; |
2871 /** A pie chart specification. */ | 3260 /** A pie chart specification. */ |
2872 PieChartSpec pieChart; | 3261 PieChartSpec pieChart; |
2873 /** The title of the chart. */ | 3262 /** The title of the chart. */ |
2874 core.String title; | 3263 core.String title; |
| 3264 /** |
| 3265 * The title text format. |
| 3266 * Strikethrough and underline are not supported. |
| 3267 */ |
| 3268 TextFormat titleTextFormat; |
2875 | 3269 |
2876 ChartSpec(); | 3270 ChartSpec(); |
2877 | 3271 |
2878 ChartSpec.fromJson(core.Map _json) { | 3272 ChartSpec.fromJson(core.Map _json) { |
| 3273 if (_json.containsKey("backgroundColor")) { |
| 3274 backgroundColor = new Color.fromJson(_json["backgroundColor"]); |
| 3275 } |
2879 if (_json.containsKey("basicChart")) { | 3276 if (_json.containsKey("basicChart")) { |
2880 basicChart = new BasicChartSpec.fromJson(_json["basicChart"]); | 3277 basicChart = new BasicChartSpec.fromJson(_json["basicChart"]); |
2881 } | 3278 } |
| 3279 if (_json.containsKey("bubbleChart")) { |
| 3280 bubbleChart = new BubbleChartSpec.fromJson(_json["bubbleChart"]); |
| 3281 } |
| 3282 if (_json.containsKey("candlestickChart")) { |
| 3283 candlestickChart = new CandlestickChartSpec.fromJson(_json["candlestickCha
rt"]); |
| 3284 } |
| 3285 if (_json.containsKey("fontName")) { |
| 3286 fontName = _json["fontName"]; |
| 3287 } |
2882 if (_json.containsKey("hiddenDimensionStrategy")) { | 3288 if (_json.containsKey("hiddenDimensionStrategy")) { |
2883 hiddenDimensionStrategy = _json["hiddenDimensionStrategy"]; | 3289 hiddenDimensionStrategy = _json["hiddenDimensionStrategy"]; |
2884 } | 3290 } |
| 3291 if (_json.containsKey("histogramChart")) { |
| 3292 histogramChart = new HistogramChartSpec.fromJson(_json["histogramChart"]); |
| 3293 } |
| 3294 if (_json.containsKey("maximized")) { |
| 3295 maximized = _json["maximized"]; |
| 3296 } |
| 3297 if (_json.containsKey("orgChart")) { |
| 3298 orgChart = new OrgChartSpec.fromJson(_json["orgChart"]); |
| 3299 } |
2885 if (_json.containsKey("pieChart")) { | 3300 if (_json.containsKey("pieChart")) { |
2886 pieChart = new PieChartSpec.fromJson(_json["pieChart"]); | 3301 pieChart = new PieChartSpec.fromJson(_json["pieChart"]); |
2887 } | 3302 } |
2888 if (_json.containsKey("title")) { | 3303 if (_json.containsKey("title")) { |
2889 title = _json["title"]; | 3304 title = _json["title"]; |
2890 } | 3305 } |
| 3306 if (_json.containsKey("titleTextFormat")) { |
| 3307 titleTextFormat = new TextFormat.fromJson(_json["titleTextFormat"]); |
| 3308 } |
2891 } | 3309 } |
2892 | 3310 |
2893 core.Map toJson() { | 3311 core.Map<core.String, core.Object> toJson() { |
2894 var _json = new core.Map(); | 3312 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 3313 if (backgroundColor != null) { |
| 3314 _json["backgroundColor"] = (backgroundColor).toJson(); |
| 3315 } |
2895 if (basicChart != null) { | 3316 if (basicChart != null) { |
2896 _json["basicChart"] = (basicChart).toJson(); | 3317 _json["basicChart"] = (basicChart).toJson(); |
2897 } | 3318 } |
| 3319 if (bubbleChart != null) { |
| 3320 _json["bubbleChart"] = (bubbleChart).toJson(); |
| 3321 } |
| 3322 if (candlestickChart != null) { |
| 3323 _json["candlestickChart"] = (candlestickChart).toJson(); |
| 3324 } |
| 3325 if (fontName != null) { |
| 3326 _json["fontName"] = fontName; |
| 3327 } |
2898 if (hiddenDimensionStrategy != null) { | 3328 if (hiddenDimensionStrategy != null) { |
2899 _json["hiddenDimensionStrategy"] = hiddenDimensionStrategy; | 3329 _json["hiddenDimensionStrategy"] = hiddenDimensionStrategy; |
2900 } | 3330 } |
| 3331 if (histogramChart != null) { |
| 3332 _json["histogramChart"] = (histogramChart).toJson(); |
| 3333 } |
| 3334 if (maximized != null) { |
| 3335 _json["maximized"] = maximized; |
| 3336 } |
| 3337 if (orgChart != null) { |
| 3338 _json["orgChart"] = (orgChart).toJson(); |
| 3339 } |
2901 if (pieChart != null) { | 3340 if (pieChart != null) { |
2902 _json["pieChart"] = (pieChart).toJson(); | 3341 _json["pieChart"] = (pieChart).toJson(); |
2903 } | 3342 } |
2904 if (title != null) { | 3343 if (title != null) { |
2905 _json["title"] = title; | 3344 _json["title"] = title; |
2906 } | 3345 } |
| 3346 if (titleTextFormat != null) { |
| 3347 _json["titleTextFormat"] = (titleTextFormat).toJson(); |
| 3348 } |
2907 return _json; | 3349 return _json; |
2908 } | 3350 } |
2909 } | 3351 } |
2910 | 3352 |
2911 /** Clears the basic filter, if any exists on the sheet. */ | 3353 /** Clears the basic filter, if any exists on the sheet. */ |
2912 class ClearBasicFilterRequest { | 3354 class ClearBasicFilterRequest { |
2913 /** The sheet ID on which the basic filter should be cleared. */ | 3355 /** The sheet ID on which the basic filter should be cleared. */ |
2914 core.int sheetId; | 3356 core.int sheetId; |
2915 | 3357 |
2916 ClearBasicFilterRequest(); | 3358 ClearBasicFilterRequest(); |
2917 | 3359 |
2918 ClearBasicFilterRequest.fromJson(core.Map _json) { | 3360 ClearBasicFilterRequest.fromJson(core.Map _json) { |
2919 if (_json.containsKey("sheetId")) { | 3361 if (_json.containsKey("sheetId")) { |
2920 sheetId = _json["sheetId"]; | 3362 sheetId = _json["sheetId"]; |
2921 } | 3363 } |
2922 } | 3364 } |
2923 | 3365 |
2924 core.Map toJson() { | 3366 core.Map<core.String, core.Object> toJson() { |
2925 var _json = new core.Map(); | 3367 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2926 if (sheetId != null) { | 3368 if (sheetId != null) { |
2927 _json["sheetId"] = sheetId; | 3369 _json["sheetId"] = sheetId; |
2928 } | 3370 } |
2929 return _json; | 3371 return _json; |
2930 } | 3372 } |
2931 } | 3373 } |
2932 | 3374 |
2933 /** The request for clearing a range of values in a spreadsheet. */ | 3375 /** The request for clearing a range of values in a spreadsheet. */ |
2934 class ClearValuesRequest { | 3376 class ClearValuesRequest { |
2935 | 3377 |
2936 ClearValuesRequest(); | 3378 ClearValuesRequest(); |
2937 | 3379 |
2938 ClearValuesRequest.fromJson(core.Map _json) { | 3380 ClearValuesRequest.fromJson(core.Map _json) { |
2939 } | 3381 } |
2940 | 3382 |
2941 core.Map toJson() { | 3383 core.Map<core.String, core.Object> toJson() { |
2942 var _json = new core.Map(); | 3384 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2943 return _json; | 3385 return _json; |
2944 } | 3386 } |
2945 } | 3387 } |
2946 | 3388 |
2947 /** The response when clearing a range of values in a spreadsheet. */ | 3389 /** The response when clearing a range of values in a spreadsheet. */ |
2948 class ClearValuesResponse { | 3390 class ClearValuesResponse { |
2949 /** | 3391 /** |
2950 * The range (in A1 notation) that was cleared. | 3392 * The range (in A1 notation) that was cleared. |
2951 * (If the request was for an unbounded range or a ranger larger | 3393 * (If the request was for an unbounded range or a ranger larger |
2952 * than the bounds of the sheet, this will be the actual range | 3394 * than the bounds of the sheet, this will be the actual range |
2953 * that was cleared, bounded to the sheet's limits.) | 3395 * that was cleared, bounded to the sheet's limits.) |
2954 */ | 3396 */ |
2955 core.String clearedRange; | 3397 core.String clearedRange; |
2956 /** The spreadsheet the updates were applied to. */ | 3398 /** The spreadsheet the updates were applied to. */ |
2957 core.String spreadsheetId; | 3399 core.String spreadsheetId; |
2958 | 3400 |
2959 ClearValuesResponse(); | 3401 ClearValuesResponse(); |
2960 | 3402 |
2961 ClearValuesResponse.fromJson(core.Map _json) { | 3403 ClearValuesResponse.fromJson(core.Map _json) { |
2962 if (_json.containsKey("clearedRange")) { | 3404 if (_json.containsKey("clearedRange")) { |
2963 clearedRange = _json["clearedRange"]; | 3405 clearedRange = _json["clearedRange"]; |
2964 } | 3406 } |
2965 if (_json.containsKey("spreadsheetId")) { | 3407 if (_json.containsKey("spreadsheetId")) { |
2966 spreadsheetId = _json["spreadsheetId"]; | 3408 spreadsheetId = _json["spreadsheetId"]; |
2967 } | 3409 } |
2968 } | 3410 } |
2969 | 3411 |
2970 core.Map toJson() { | 3412 core.Map<core.String, core.Object> toJson() { |
2971 var _json = new core.Map(); | 3413 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2972 if (clearedRange != null) { | 3414 if (clearedRange != null) { |
2973 _json["clearedRange"] = clearedRange; | 3415 _json["clearedRange"] = clearedRange; |
2974 } | 3416 } |
2975 if (spreadsheetId != null) { | 3417 if (spreadsheetId != null) { |
2976 _json["spreadsheetId"] = spreadsheetId; | 3418 _json["spreadsheetId"] = spreadsheetId; |
2977 } | 3419 } |
2978 return _json; | 3420 return _json; |
2979 } | 3421 } |
2980 } | 3422 } |
2981 | 3423 |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3127 blue = _json["blue"]; | 3569 blue = _json["blue"]; |
3128 } | 3570 } |
3129 if (_json.containsKey("green")) { | 3571 if (_json.containsKey("green")) { |
3130 green = _json["green"]; | 3572 green = _json["green"]; |
3131 } | 3573 } |
3132 if (_json.containsKey("red")) { | 3574 if (_json.containsKey("red")) { |
3133 red = _json["red"]; | 3575 red = _json["red"]; |
3134 } | 3576 } |
3135 } | 3577 } |
3136 | 3578 |
3137 core.Map toJson() { | 3579 core.Map<core.String, core.Object> toJson() { |
3138 var _json = new core.Map(); | 3580 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3139 if (alpha != null) { | 3581 if (alpha != null) { |
3140 _json["alpha"] = alpha; | 3582 _json["alpha"] = alpha; |
3141 } | 3583 } |
3142 if (blue != null) { | 3584 if (blue != null) { |
3143 _json["blue"] = blue; | 3585 _json["blue"] = blue; |
3144 } | 3586 } |
3145 if (green != null) { | 3587 if (green != null) { |
3146 _json["green"] = green; | 3588 _json["green"] = green; |
3147 } | 3589 } |
3148 if (red != null) { | 3590 if (red != null) { |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3186 | 3628 |
3187 ConditionValue.fromJson(core.Map _json) { | 3629 ConditionValue.fromJson(core.Map _json) { |
3188 if (_json.containsKey("relativeDate")) { | 3630 if (_json.containsKey("relativeDate")) { |
3189 relativeDate = _json["relativeDate"]; | 3631 relativeDate = _json["relativeDate"]; |
3190 } | 3632 } |
3191 if (_json.containsKey("userEnteredValue")) { | 3633 if (_json.containsKey("userEnteredValue")) { |
3192 userEnteredValue = _json["userEnteredValue"]; | 3634 userEnteredValue = _json["userEnteredValue"]; |
3193 } | 3635 } |
3194 } | 3636 } |
3195 | 3637 |
3196 core.Map toJson() { | 3638 core.Map<core.String, core.Object> toJson() { |
3197 var _json = new core.Map(); | 3639 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3198 if (relativeDate != null) { | 3640 if (relativeDate != null) { |
3199 _json["relativeDate"] = relativeDate; | 3641 _json["relativeDate"] = relativeDate; |
3200 } | 3642 } |
3201 if (userEnteredValue != null) { | 3643 if (userEnteredValue != null) { |
3202 _json["userEnteredValue"] = userEnteredValue; | 3644 _json["userEnteredValue"] = userEnteredValue; |
3203 } | 3645 } |
3204 return _json; | 3646 return _json; |
3205 } | 3647 } |
3206 } | 3648 } |
3207 | 3649 |
(...skipping 16 matching lines...) Expand all Loading... |
3224 booleanRule = new BooleanRule.fromJson(_json["booleanRule"]); | 3666 booleanRule = new BooleanRule.fromJson(_json["booleanRule"]); |
3225 } | 3667 } |
3226 if (_json.containsKey("gradientRule")) { | 3668 if (_json.containsKey("gradientRule")) { |
3227 gradientRule = new GradientRule.fromJson(_json["gradientRule"]); | 3669 gradientRule = new GradientRule.fromJson(_json["gradientRule"]); |
3228 } | 3670 } |
3229 if (_json.containsKey("ranges")) { | 3671 if (_json.containsKey("ranges")) { |
3230 ranges = _json["ranges"].map((value) => new GridRange.fromJson(value)).toL
ist(); | 3672 ranges = _json["ranges"].map((value) => new GridRange.fromJson(value)).toL
ist(); |
3231 } | 3673 } |
3232 } | 3674 } |
3233 | 3675 |
3234 core.Map toJson() { | 3676 core.Map<core.String, core.Object> toJson() { |
3235 var _json = new core.Map(); | 3677 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3236 if (booleanRule != null) { | 3678 if (booleanRule != null) { |
3237 _json["booleanRule"] = (booleanRule).toJson(); | 3679 _json["booleanRule"] = (booleanRule).toJson(); |
3238 } | 3680 } |
3239 if (gradientRule != null) { | 3681 if (gradientRule != null) { |
3240 _json["gradientRule"] = (gradientRule).toJson(); | 3682 _json["gradientRule"] = (gradientRule).toJson(); |
3241 } | 3683 } |
3242 if (ranges != null) { | 3684 if (ranges != null) { |
3243 _json["ranges"] = ranges.map((value) => (value).toJson()).toList(); | 3685 _json["ranges"] = ranges.map((value) => (value).toJson()).toList(); |
3244 } | 3686 } |
3245 return _json; | 3687 return _json; |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3291 pasteOrientation = _json["pasteOrientation"]; | 3733 pasteOrientation = _json["pasteOrientation"]; |
3292 } | 3734 } |
3293 if (_json.containsKey("pasteType")) { | 3735 if (_json.containsKey("pasteType")) { |
3294 pasteType = _json["pasteType"]; | 3736 pasteType = _json["pasteType"]; |
3295 } | 3737 } |
3296 if (_json.containsKey("source")) { | 3738 if (_json.containsKey("source")) { |
3297 source = new GridRange.fromJson(_json["source"]); | 3739 source = new GridRange.fromJson(_json["source"]); |
3298 } | 3740 } |
3299 } | 3741 } |
3300 | 3742 |
3301 core.Map toJson() { | 3743 core.Map<core.String, core.Object> toJson() { |
3302 var _json = new core.Map(); | 3744 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3303 if (destination != null) { | 3745 if (destination != null) { |
3304 _json["destination"] = (destination).toJson(); | 3746 _json["destination"] = (destination).toJson(); |
3305 } | 3747 } |
3306 if (pasteOrientation != null) { | 3748 if (pasteOrientation != null) { |
3307 _json["pasteOrientation"] = pasteOrientation; | 3749 _json["pasteOrientation"] = pasteOrientation; |
3308 } | 3750 } |
3309 if (pasteType != null) { | 3751 if (pasteType != null) { |
3310 _json["pasteType"] = pasteType; | 3752 _json["pasteType"] = pasteType; |
3311 } | 3753 } |
3312 if (source != null) { | 3754 if (source != null) { |
3313 _json["source"] = (source).toJson(); | 3755 _json["source"] = (source).toJson(); |
3314 } | 3756 } |
3315 return _json; | 3757 return _json; |
3316 } | 3758 } |
3317 } | 3759 } |
3318 | 3760 |
3319 /** The request to copy a sheet across spreadsheets. */ | 3761 /** The request to copy a sheet across spreadsheets. */ |
3320 class CopySheetToAnotherSpreadsheetRequest { | 3762 class CopySheetToAnotherSpreadsheetRequest { |
3321 /** The ID of the spreadsheet to copy the sheet to. */ | 3763 /** The ID of the spreadsheet to copy the sheet to. */ |
3322 core.String destinationSpreadsheetId; | 3764 core.String destinationSpreadsheetId; |
3323 | 3765 |
3324 CopySheetToAnotherSpreadsheetRequest(); | 3766 CopySheetToAnotherSpreadsheetRequest(); |
3325 | 3767 |
3326 CopySheetToAnotherSpreadsheetRequest.fromJson(core.Map _json) { | 3768 CopySheetToAnotherSpreadsheetRequest.fromJson(core.Map _json) { |
3327 if (_json.containsKey("destinationSpreadsheetId")) { | 3769 if (_json.containsKey("destinationSpreadsheetId")) { |
3328 destinationSpreadsheetId = _json["destinationSpreadsheetId"]; | 3770 destinationSpreadsheetId = _json["destinationSpreadsheetId"]; |
3329 } | 3771 } |
3330 } | 3772 } |
3331 | 3773 |
3332 core.Map toJson() { | 3774 core.Map<core.String, core.Object> toJson() { |
3333 var _json = new core.Map(); | 3775 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3334 if (destinationSpreadsheetId != null) { | 3776 if (destinationSpreadsheetId != null) { |
3335 _json["destinationSpreadsheetId"] = destinationSpreadsheetId; | 3777 _json["destinationSpreadsheetId"] = destinationSpreadsheetId; |
3336 } | 3778 } |
3337 return _json; | 3779 return _json; |
3338 } | 3780 } |
3339 } | 3781 } |
3340 | 3782 |
3341 /** Moves data from the source to the destination. */ | 3783 /** Moves data from the source to the destination. */ |
3342 class CutPasteRequest { | 3784 class CutPasteRequest { |
3343 /** The top-left coordinate where the data should be pasted. */ | 3785 /** The top-left coordinate where the data should be pasted. */ |
(...skipping 23 matching lines...) Expand all Loading... |
3367 destination = new GridCoordinate.fromJson(_json["destination"]); | 3809 destination = new GridCoordinate.fromJson(_json["destination"]); |
3368 } | 3810 } |
3369 if (_json.containsKey("pasteType")) { | 3811 if (_json.containsKey("pasteType")) { |
3370 pasteType = _json["pasteType"]; | 3812 pasteType = _json["pasteType"]; |
3371 } | 3813 } |
3372 if (_json.containsKey("source")) { | 3814 if (_json.containsKey("source")) { |
3373 source = new GridRange.fromJson(_json["source"]); | 3815 source = new GridRange.fromJson(_json["source"]); |
3374 } | 3816 } |
3375 } | 3817 } |
3376 | 3818 |
3377 core.Map toJson() { | 3819 core.Map<core.String, core.Object> toJson() { |
3378 var _json = new core.Map(); | 3820 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3379 if (destination != null) { | 3821 if (destination != null) { |
3380 _json["destination"] = (destination).toJson(); | 3822 _json["destination"] = (destination).toJson(); |
3381 } | 3823 } |
3382 if (pasteType != null) { | 3824 if (pasteType != null) { |
3383 _json["pasteType"] = pasteType; | 3825 _json["pasteType"] = pasteType; |
3384 } | 3826 } |
3385 if (source != null) { | 3827 if (source != null) { |
3386 _json["source"] = (source).toJson(); | 3828 _json["source"] = (source).toJson(); |
3387 } | 3829 } |
3388 return _json; | 3830 return _json; |
(...skipping 24 matching lines...) Expand all Loading... |
3413 inputMessage = _json["inputMessage"]; | 3855 inputMessage = _json["inputMessage"]; |
3414 } | 3856 } |
3415 if (_json.containsKey("showCustomUi")) { | 3857 if (_json.containsKey("showCustomUi")) { |
3416 showCustomUi = _json["showCustomUi"]; | 3858 showCustomUi = _json["showCustomUi"]; |
3417 } | 3859 } |
3418 if (_json.containsKey("strict")) { | 3860 if (_json.containsKey("strict")) { |
3419 strict = _json["strict"]; | 3861 strict = _json["strict"]; |
3420 } | 3862 } |
3421 } | 3863 } |
3422 | 3864 |
3423 core.Map toJson() { | 3865 core.Map<core.String, core.Object> toJson() { |
3424 var _json = new core.Map(); | 3866 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3425 if (condition != null) { | 3867 if (condition != null) { |
3426 _json["condition"] = (condition).toJson(); | 3868 _json["condition"] = (condition).toJson(); |
3427 } | 3869 } |
3428 if (inputMessage != null) { | 3870 if (inputMessage != null) { |
3429 _json["inputMessage"] = inputMessage; | 3871 _json["inputMessage"] = inputMessage; |
3430 } | 3872 } |
3431 if (showCustomUi != null) { | 3873 if (showCustomUi != null) { |
3432 _json["showCustomUi"] = showCustomUi; | 3874 _json["showCustomUi"] = showCustomUi; |
3433 } | 3875 } |
3434 if (strict != null) { | 3876 if (strict != null) { |
3435 _json["strict"] = strict; | 3877 _json["strict"] = strict; |
3436 } | 3878 } |
3437 return _json; | 3879 return _json; |
3438 } | 3880 } |
3439 } | 3881 } |
3440 | 3882 |
3441 /** Removes the banded range with the given ID from the spreadsheet. */ | 3883 /** Removes the banded range with the given ID from the spreadsheet. */ |
3442 class DeleteBandingRequest { | 3884 class DeleteBandingRequest { |
3443 /** The ID of the banded range to delete. */ | 3885 /** The ID of the banded range to delete. */ |
3444 core.int bandedRangeId; | 3886 core.int bandedRangeId; |
3445 | 3887 |
3446 DeleteBandingRequest(); | 3888 DeleteBandingRequest(); |
3447 | 3889 |
3448 DeleteBandingRequest.fromJson(core.Map _json) { | 3890 DeleteBandingRequest.fromJson(core.Map _json) { |
3449 if (_json.containsKey("bandedRangeId")) { | 3891 if (_json.containsKey("bandedRangeId")) { |
3450 bandedRangeId = _json["bandedRangeId"]; | 3892 bandedRangeId = _json["bandedRangeId"]; |
3451 } | 3893 } |
3452 } | 3894 } |
3453 | 3895 |
3454 core.Map toJson() { | 3896 core.Map<core.String, core.Object> toJson() { |
3455 var _json = new core.Map(); | 3897 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3456 if (bandedRangeId != null) { | 3898 if (bandedRangeId != null) { |
3457 _json["bandedRangeId"] = bandedRangeId; | 3899 _json["bandedRangeId"] = bandedRangeId; |
3458 } | 3900 } |
3459 return _json; | 3901 return _json; |
3460 } | 3902 } |
3461 } | 3903 } |
3462 | 3904 |
3463 /** | 3905 /** |
3464 * Deletes a conditional format rule at the given index. | 3906 * Deletes a conditional format rule at the given index. |
3465 * All subsequent rules' indexes are decremented. | 3907 * All subsequent rules' indexes are decremented. |
3466 */ | 3908 */ |
3467 class DeleteConditionalFormatRuleRequest { | 3909 class DeleteConditionalFormatRuleRequest { |
3468 /** The zero-based index of the rule to be deleted. */ | 3910 /** The zero-based index of the rule to be deleted. */ |
3469 core.int index; | 3911 core.int index; |
3470 /** The sheet the rule is being deleted from. */ | 3912 /** The sheet the rule is being deleted from. */ |
3471 core.int sheetId; | 3913 core.int sheetId; |
3472 | 3914 |
3473 DeleteConditionalFormatRuleRequest(); | 3915 DeleteConditionalFormatRuleRequest(); |
3474 | 3916 |
3475 DeleteConditionalFormatRuleRequest.fromJson(core.Map _json) { | 3917 DeleteConditionalFormatRuleRequest.fromJson(core.Map _json) { |
3476 if (_json.containsKey("index")) { | 3918 if (_json.containsKey("index")) { |
3477 index = _json["index"]; | 3919 index = _json["index"]; |
3478 } | 3920 } |
3479 if (_json.containsKey("sheetId")) { | 3921 if (_json.containsKey("sheetId")) { |
3480 sheetId = _json["sheetId"]; | 3922 sheetId = _json["sheetId"]; |
3481 } | 3923 } |
3482 } | 3924 } |
3483 | 3925 |
3484 core.Map toJson() { | 3926 core.Map<core.String, core.Object> toJson() { |
3485 var _json = new core.Map(); | 3927 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3486 if (index != null) { | 3928 if (index != null) { |
3487 _json["index"] = index; | 3929 _json["index"] = index; |
3488 } | 3930 } |
3489 if (sheetId != null) { | 3931 if (sheetId != null) { |
3490 _json["sheetId"] = sheetId; | 3932 _json["sheetId"] = sheetId; |
3491 } | 3933 } |
3492 return _json; | 3934 return _json; |
3493 } | 3935 } |
3494 } | 3936 } |
3495 | 3937 |
3496 /** The result of deleting a conditional format rule. */ | 3938 /** The result of deleting a conditional format rule. */ |
3497 class DeleteConditionalFormatRuleResponse { | 3939 class DeleteConditionalFormatRuleResponse { |
3498 /** The rule that was deleted. */ | 3940 /** The rule that was deleted. */ |
3499 ConditionalFormatRule rule; | 3941 ConditionalFormatRule rule; |
3500 | 3942 |
3501 DeleteConditionalFormatRuleResponse(); | 3943 DeleteConditionalFormatRuleResponse(); |
3502 | 3944 |
3503 DeleteConditionalFormatRuleResponse.fromJson(core.Map _json) { | 3945 DeleteConditionalFormatRuleResponse.fromJson(core.Map _json) { |
3504 if (_json.containsKey("rule")) { | 3946 if (_json.containsKey("rule")) { |
3505 rule = new ConditionalFormatRule.fromJson(_json["rule"]); | 3947 rule = new ConditionalFormatRule.fromJson(_json["rule"]); |
3506 } | 3948 } |
3507 } | 3949 } |
3508 | 3950 |
3509 core.Map toJson() { | 3951 core.Map<core.String, core.Object> toJson() { |
3510 var _json = new core.Map(); | 3952 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3511 if (rule != null) { | 3953 if (rule != null) { |
3512 _json["rule"] = (rule).toJson(); | 3954 _json["rule"] = (rule).toJson(); |
3513 } | 3955 } |
3514 return _json; | 3956 return _json; |
3515 } | 3957 } |
3516 } | 3958 } |
3517 | 3959 |
3518 /** Deletes the dimensions from the sheet. */ | 3960 /** Deletes the dimensions from the sheet. */ |
3519 class DeleteDimensionRequest { | 3961 class DeleteDimensionRequest { |
3520 /** The dimensions to delete from the sheet. */ | 3962 /** The dimensions to delete from the sheet. */ |
3521 DimensionRange range; | 3963 DimensionRange range; |
3522 | 3964 |
3523 DeleteDimensionRequest(); | 3965 DeleteDimensionRequest(); |
3524 | 3966 |
3525 DeleteDimensionRequest.fromJson(core.Map _json) { | 3967 DeleteDimensionRequest.fromJson(core.Map _json) { |
3526 if (_json.containsKey("range")) { | 3968 if (_json.containsKey("range")) { |
3527 range = new DimensionRange.fromJson(_json["range"]); | 3969 range = new DimensionRange.fromJson(_json["range"]); |
3528 } | 3970 } |
3529 } | 3971 } |
3530 | 3972 |
3531 core.Map toJson() { | 3973 core.Map<core.String, core.Object> toJson() { |
3532 var _json = new core.Map(); | 3974 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3533 if (range != null) { | 3975 if (range != null) { |
3534 _json["range"] = (range).toJson(); | 3976 _json["range"] = (range).toJson(); |
3535 } | 3977 } |
3536 return _json; | 3978 return _json; |
3537 } | 3979 } |
3538 } | 3980 } |
3539 | 3981 |
3540 /** Deletes the embedded object with the given ID. */ | 3982 /** Deletes the embedded object with the given ID. */ |
3541 class DeleteEmbeddedObjectRequest { | 3983 class DeleteEmbeddedObjectRequest { |
3542 /** The ID of the embedded object to delete. */ | 3984 /** The ID of the embedded object to delete. */ |
3543 core.int objectId; | 3985 core.int objectId; |
3544 | 3986 |
3545 DeleteEmbeddedObjectRequest(); | 3987 DeleteEmbeddedObjectRequest(); |
3546 | 3988 |
3547 DeleteEmbeddedObjectRequest.fromJson(core.Map _json) { | 3989 DeleteEmbeddedObjectRequest.fromJson(core.Map _json) { |
3548 if (_json.containsKey("objectId")) { | 3990 if (_json.containsKey("objectId")) { |
3549 objectId = _json["objectId"]; | 3991 objectId = _json["objectId"]; |
3550 } | 3992 } |
3551 } | 3993 } |
3552 | 3994 |
3553 core.Map toJson() { | 3995 core.Map<core.String, core.Object> toJson() { |
3554 var _json = new core.Map(); | 3996 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3555 if (objectId != null) { | 3997 if (objectId != null) { |
3556 _json["objectId"] = objectId; | 3998 _json["objectId"] = objectId; |
3557 } | 3999 } |
3558 return _json; | 4000 return _json; |
3559 } | 4001 } |
3560 } | 4002 } |
3561 | 4003 |
3562 /** Deletes a particular filter view. */ | 4004 /** Deletes a particular filter view. */ |
3563 class DeleteFilterViewRequest { | 4005 class DeleteFilterViewRequest { |
3564 /** The ID of the filter to delete. */ | 4006 /** The ID of the filter to delete. */ |
3565 core.int filterId; | 4007 core.int filterId; |
3566 | 4008 |
3567 DeleteFilterViewRequest(); | 4009 DeleteFilterViewRequest(); |
3568 | 4010 |
3569 DeleteFilterViewRequest.fromJson(core.Map _json) { | 4011 DeleteFilterViewRequest.fromJson(core.Map _json) { |
3570 if (_json.containsKey("filterId")) { | 4012 if (_json.containsKey("filterId")) { |
3571 filterId = _json["filterId"]; | 4013 filterId = _json["filterId"]; |
3572 } | 4014 } |
3573 } | 4015 } |
3574 | 4016 |
3575 core.Map toJson() { | 4017 core.Map<core.String, core.Object> toJson() { |
3576 var _json = new core.Map(); | 4018 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3577 if (filterId != null) { | 4019 if (filterId != null) { |
3578 _json["filterId"] = filterId; | 4020 _json["filterId"] = filterId; |
3579 } | 4021 } |
3580 return _json; | 4022 return _json; |
3581 } | 4023 } |
3582 } | 4024 } |
3583 | 4025 |
3584 /** Removes the named range with the given ID from the spreadsheet. */ | 4026 /** Removes the named range with the given ID from the spreadsheet. */ |
3585 class DeleteNamedRangeRequest { | 4027 class DeleteNamedRangeRequest { |
3586 /** The ID of the named range to delete. */ | 4028 /** The ID of the named range to delete. */ |
3587 core.String namedRangeId; | 4029 core.String namedRangeId; |
3588 | 4030 |
3589 DeleteNamedRangeRequest(); | 4031 DeleteNamedRangeRequest(); |
3590 | 4032 |
3591 DeleteNamedRangeRequest.fromJson(core.Map _json) { | 4033 DeleteNamedRangeRequest.fromJson(core.Map _json) { |
3592 if (_json.containsKey("namedRangeId")) { | 4034 if (_json.containsKey("namedRangeId")) { |
3593 namedRangeId = _json["namedRangeId"]; | 4035 namedRangeId = _json["namedRangeId"]; |
3594 } | 4036 } |
3595 } | 4037 } |
3596 | 4038 |
3597 core.Map toJson() { | 4039 core.Map<core.String, core.Object> toJson() { |
3598 var _json = new core.Map(); | 4040 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3599 if (namedRangeId != null) { | 4041 if (namedRangeId != null) { |
3600 _json["namedRangeId"] = namedRangeId; | 4042 _json["namedRangeId"] = namedRangeId; |
3601 } | 4043 } |
3602 return _json; | 4044 return _json; |
3603 } | 4045 } |
3604 } | 4046 } |
3605 | 4047 |
3606 /** Deletes the protected range with the given ID. */ | 4048 /** Deletes the protected range with the given ID. */ |
3607 class DeleteProtectedRangeRequest { | 4049 class DeleteProtectedRangeRequest { |
3608 /** The ID of the protected range to delete. */ | 4050 /** The ID of the protected range to delete. */ |
3609 core.int protectedRangeId; | 4051 core.int protectedRangeId; |
3610 | 4052 |
3611 DeleteProtectedRangeRequest(); | 4053 DeleteProtectedRangeRequest(); |
3612 | 4054 |
3613 DeleteProtectedRangeRequest.fromJson(core.Map _json) { | 4055 DeleteProtectedRangeRequest.fromJson(core.Map _json) { |
3614 if (_json.containsKey("protectedRangeId")) { | 4056 if (_json.containsKey("protectedRangeId")) { |
3615 protectedRangeId = _json["protectedRangeId"]; | 4057 protectedRangeId = _json["protectedRangeId"]; |
3616 } | 4058 } |
3617 } | 4059 } |
3618 | 4060 |
3619 core.Map toJson() { | 4061 core.Map<core.String, core.Object> toJson() { |
3620 var _json = new core.Map(); | 4062 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3621 if (protectedRangeId != null) { | 4063 if (protectedRangeId != null) { |
3622 _json["protectedRangeId"] = protectedRangeId; | 4064 _json["protectedRangeId"] = protectedRangeId; |
3623 } | 4065 } |
3624 return _json; | 4066 return _json; |
3625 } | 4067 } |
3626 } | 4068 } |
3627 | 4069 |
3628 /** Deletes a range of cells, shifting other cells into the deleted area. */ | 4070 /** Deletes a range of cells, shifting other cells into the deleted area. */ |
3629 class DeleteRangeRequest { | 4071 class DeleteRangeRequest { |
3630 /** The range of cells to delete. */ | 4072 /** The range of cells to delete. */ |
(...skipping 14 matching lines...) Expand all Loading... |
3645 | 4087 |
3646 DeleteRangeRequest.fromJson(core.Map _json) { | 4088 DeleteRangeRequest.fromJson(core.Map _json) { |
3647 if (_json.containsKey("range")) { | 4089 if (_json.containsKey("range")) { |
3648 range = new GridRange.fromJson(_json["range"]); | 4090 range = new GridRange.fromJson(_json["range"]); |
3649 } | 4091 } |
3650 if (_json.containsKey("shiftDimension")) { | 4092 if (_json.containsKey("shiftDimension")) { |
3651 shiftDimension = _json["shiftDimension"]; | 4093 shiftDimension = _json["shiftDimension"]; |
3652 } | 4094 } |
3653 } | 4095 } |
3654 | 4096 |
3655 core.Map toJson() { | 4097 core.Map<core.String, core.Object> toJson() { |
3656 var _json = new core.Map(); | 4098 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3657 if (range != null) { | 4099 if (range != null) { |
3658 _json["range"] = (range).toJson(); | 4100 _json["range"] = (range).toJson(); |
3659 } | 4101 } |
3660 if (shiftDimension != null) { | 4102 if (shiftDimension != null) { |
3661 _json["shiftDimension"] = shiftDimension; | 4103 _json["shiftDimension"] = shiftDimension; |
3662 } | 4104 } |
3663 return _json; | 4105 return _json; |
3664 } | 4106 } |
3665 } | 4107 } |
3666 | 4108 |
3667 /** Deletes the requested sheet. */ | 4109 /** Deletes the requested sheet. */ |
3668 class DeleteSheetRequest { | 4110 class DeleteSheetRequest { |
3669 /** The ID of the sheet to delete. */ | 4111 /** The ID of the sheet to delete. */ |
3670 core.int sheetId; | 4112 core.int sheetId; |
3671 | 4113 |
3672 DeleteSheetRequest(); | 4114 DeleteSheetRequest(); |
3673 | 4115 |
3674 DeleteSheetRequest.fromJson(core.Map _json) { | 4116 DeleteSheetRequest.fromJson(core.Map _json) { |
3675 if (_json.containsKey("sheetId")) { | 4117 if (_json.containsKey("sheetId")) { |
3676 sheetId = _json["sheetId"]; | 4118 sheetId = _json["sheetId"]; |
3677 } | 4119 } |
3678 } | 4120 } |
3679 | 4121 |
3680 core.Map toJson() { | 4122 core.Map<core.String, core.Object> toJson() { |
3681 var _json = new core.Map(); | 4123 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3682 if (sheetId != null) { | 4124 if (sheetId != null) { |
3683 _json["sheetId"] = sheetId; | 4125 _json["sheetId"] = sheetId; |
3684 } | 4126 } |
3685 return _json; | 4127 return _json; |
3686 } | 4128 } |
3687 } | 4129 } |
3688 | 4130 |
3689 /** Properties about a dimension. */ | 4131 /** Properties about a dimension. */ |
3690 class DimensionProperties { | 4132 class DimensionProperties { |
3691 /** | 4133 /** |
(...skipping 15 matching lines...) Expand all Loading... |
3707 hiddenByFilter = _json["hiddenByFilter"]; | 4149 hiddenByFilter = _json["hiddenByFilter"]; |
3708 } | 4150 } |
3709 if (_json.containsKey("hiddenByUser")) { | 4151 if (_json.containsKey("hiddenByUser")) { |
3710 hiddenByUser = _json["hiddenByUser"]; | 4152 hiddenByUser = _json["hiddenByUser"]; |
3711 } | 4153 } |
3712 if (_json.containsKey("pixelSize")) { | 4154 if (_json.containsKey("pixelSize")) { |
3713 pixelSize = _json["pixelSize"]; | 4155 pixelSize = _json["pixelSize"]; |
3714 } | 4156 } |
3715 } | 4157 } |
3716 | 4158 |
3717 core.Map toJson() { | 4159 core.Map<core.String, core.Object> toJson() { |
3718 var _json = new core.Map(); | 4160 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3719 if (hiddenByFilter != null) { | 4161 if (hiddenByFilter != null) { |
3720 _json["hiddenByFilter"] = hiddenByFilter; | 4162 _json["hiddenByFilter"] = hiddenByFilter; |
3721 } | 4163 } |
3722 if (hiddenByUser != null) { | 4164 if (hiddenByUser != null) { |
3723 _json["hiddenByUser"] = hiddenByUser; | 4165 _json["hiddenByUser"] = hiddenByUser; |
3724 } | 4166 } |
3725 if (pixelSize != null) { | 4167 if (pixelSize != null) { |
3726 _json["pixelSize"] = pixelSize; | 4168 _json["pixelSize"] = pixelSize; |
3727 } | 4169 } |
3728 return _json; | 4170 return _json; |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3762 endIndex = _json["endIndex"]; | 4204 endIndex = _json["endIndex"]; |
3763 } | 4205 } |
3764 if (_json.containsKey("sheetId")) { | 4206 if (_json.containsKey("sheetId")) { |
3765 sheetId = _json["sheetId"]; | 4207 sheetId = _json["sheetId"]; |
3766 } | 4208 } |
3767 if (_json.containsKey("startIndex")) { | 4209 if (_json.containsKey("startIndex")) { |
3768 startIndex = _json["startIndex"]; | 4210 startIndex = _json["startIndex"]; |
3769 } | 4211 } |
3770 } | 4212 } |
3771 | 4213 |
3772 core.Map toJson() { | 4214 core.Map<core.String, core.Object> toJson() { |
3773 var _json = new core.Map(); | 4215 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3774 if (dimension != null) { | 4216 if (dimension != null) { |
3775 _json["dimension"] = dimension; | 4217 _json["dimension"] = dimension; |
3776 } | 4218 } |
3777 if (endIndex != null) { | 4219 if (endIndex != null) { |
3778 _json["endIndex"] = endIndex; | 4220 _json["endIndex"] = endIndex; |
3779 } | 4221 } |
3780 if (sheetId != null) { | 4222 if (sheetId != null) { |
3781 _json["sheetId"] = sheetId; | 4223 _json["sheetId"] = sheetId; |
3782 } | 4224 } |
3783 if (startIndex != null) { | 4225 if (startIndex != null) { |
3784 _json["startIndex"] = startIndex; | 4226 _json["startIndex"] = startIndex; |
3785 } | 4227 } |
3786 return _json; | 4228 return _json; |
3787 } | 4229 } |
3788 } | 4230 } |
3789 | 4231 |
3790 /** Duplicates a particular filter view. */ | 4232 /** Duplicates a particular filter view. */ |
3791 class DuplicateFilterViewRequest { | 4233 class DuplicateFilterViewRequest { |
3792 /** The ID of the filter being duplicated. */ | 4234 /** The ID of the filter being duplicated. */ |
3793 core.int filterId; | 4235 core.int filterId; |
3794 | 4236 |
3795 DuplicateFilterViewRequest(); | 4237 DuplicateFilterViewRequest(); |
3796 | 4238 |
3797 DuplicateFilterViewRequest.fromJson(core.Map _json) { | 4239 DuplicateFilterViewRequest.fromJson(core.Map _json) { |
3798 if (_json.containsKey("filterId")) { | 4240 if (_json.containsKey("filterId")) { |
3799 filterId = _json["filterId"]; | 4241 filterId = _json["filterId"]; |
3800 } | 4242 } |
3801 } | 4243 } |
3802 | 4244 |
3803 core.Map toJson() { | 4245 core.Map<core.String, core.Object> toJson() { |
3804 var _json = new core.Map(); | 4246 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3805 if (filterId != null) { | 4247 if (filterId != null) { |
3806 _json["filterId"] = filterId; | 4248 _json["filterId"] = filterId; |
3807 } | 4249 } |
3808 return _json; | 4250 return _json; |
3809 } | 4251 } |
3810 } | 4252 } |
3811 | 4253 |
3812 /** The result of a filter view being duplicated. */ | 4254 /** The result of a filter view being duplicated. */ |
3813 class DuplicateFilterViewResponse { | 4255 class DuplicateFilterViewResponse { |
3814 /** The newly created filter. */ | 4256 /** The newly created filter. */ |
3815 FilterView filter; | 4257 FilterView filter; |
3816 | 4258 |
3817 DuplicateFilterViewResponse(); | 4259 DuplicateFilterViewResponse(); |
3818 | 4260 |
3819 DuplicateFilterViewResponse.fromJson(core.Map _json) { | 4261 DuplicateFilterViewResponse.fromJson(core.Map _json) { |
3820 if (_json.containsKey("filter")) { | 4262 if (_json.containsKey("filter")) { |
3821 filter = new FilterView.fromJson(_json["filter"]); | 4263 filter = new FilterView.fromJson(_json["filter"]); |
3822 } | 4264 } |
3823 } | 4265 } |
3824 | 4266 |
3825 core.Map toJson() { | 4267 core.Map<core.String, core.Object> toJson() { |
3826 var _json = new core.Map(); | 4268 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3827 if (filter != null) { | 4269 if (filter != null) { |
3828 _json["filter"] = (filter).toJson(); | 4270 _json["filter"] = (filter).toJson(); |
3829 } | 4271 } |
3830 return _json; | 4272 return _json; |
3831 } | 4273 } |
3832 } | 4274 } |
3833 | 4275 |
3834 /** Duplicates the contents of a sheet. */ | 4276 /** Duplicates the contents of a sheet. */ |
3835 class DuplicateSheetRequest { | 4277 class DuplicateSheetRequest { |
3836 /** | 4278 /** |
(...skipping 22 matching lines...) Expand all Loading... |
3859 newSheetId = _json["newSheetId"]; | 4301 newSheetId = _json["newSheetId"]; |
3860 } | 4302 } |
3861 if (_json.containsKey("newSheetName")) { | 4303 if (_json.containsKey("newSheetName")) { |
3862 newSheetName = _json["newSheetName"]; | 4304 newSheetName = _json["newSheetName"]; |
3863 } | 4305 } |
3864 if (_json.containsKey("sourceSheetId")) { | 4306 if (_json.containsKey("sourceSheetId")) { |
3865 sourceSheetId = _json["sourceSheetId"]; | 4307 sourceSheetId = _json["sourceSheetId"]; |
3866 } | 4308 } |
3867 } | 4309 } |
3868 | 4310 |
3869 core.Map toJson() { | 4311 core.Map<core.String, core.Object> toJson() { |
3870 var _json = new core.Map(); | 4312 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3871 if (insertSheetIndex != null) { | 4313 if (insertSheetIndex != null) { |
3872 _json["insertSheetIndex"] = insertSheetIndex; | 4314 _json["insertSheetIndex"] = insertSheetIndex; |
3873 } | 4315 } |
3874 if (newSheetId != null) { | 4316 if (newSheetId != null) { |
3875 _json["newSheetId"] = newSheetId; | 4317 _json["newSheetId"] = newSheetId; |
3876 } | 4318 } |
3877 if (newSheetName != null) { | 4319 if (newSheetName != null) { |
3878 _json["newSheetName"] = newSheetName; | 4320 _json["newSheetName"] = newSheetName; |
3879 } | 4321 } |
3880 if (sourceSheetId != null) { | 4322 if (sourceSheetId != null) { |
3881 _json["sourceSheetId"] = sourceSheetId; | 4323 _json["sourceSheetId"] = sourceSheetId; |
3882 } | 4324 } |
3883 return _json; | 4325 return _json; |
3884 } | 4326 } |
3885 } | 4327 } |
3886 | 4328 |
3887 /** The result of duplicating a sheet. */ | 4329 /** The result of duplicating a sheet. */ |
3888 class DuplicateSheetResponse { | 4330 class DuplicateSheetResponse { |
3889 /** The properties of the duplicate sheet. */ | 4331 /** The properties of the duplicate sheet. */ |
3890 SheetProperties properties; | 4332 SheetProperties properties; |
3891 | 4333 |
3892 DuplicateSheetResponse(); | 4334 DuplicateSheetResponse(); |
3893 | 4335 |
3894 DuplicateSheetResponse.fromJson(core.Map _json) { | 4336 DuplicateSheetResponse.fromJson(core.Map _json) { |
3895 if (_json.containsKey("properties")) { | 4337 if (_json.containsKey("properties")) { |
3896 properties = new SheetProperties.fromJson(_json["properties"]); | 4338 properties = new SheetProperties.fromJson(_json["properties"]); |
3897 } | 4339 } |
3898 } | 4340 } |
3899 | 4341 |
3900 core.Map toJson() { | 4342 core.Map<core.String, core.Object> toJson() { |
3901 var _json = new core.Map(); | 4343 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3902 if (properties != null) { | 4344 if (properties != null) { |
3903 _json["properties"] = (properties).toJson(); | 4345 _json["properties"] = (properties).toJson(); |
3904 } | 4346 } |
3905 return _json; | 4347 return _json; |
3906 } | 4348 } |
3907 } | 4349 } |
3908 | 4350 |
3909 /** The editors of a protected range. */ | 4351 /** The editors of a protected range. */ |
3910 class Editors { | 4352 class Editors { |
3911 /** | 4353 /** |
(...skipping 13 matching lines...) Expand all Loading... |
3925 domainUsersCanEdit = _json["domainUsersCanEdit"]; | 4367 domainUsersCanEdit = _json["domainUsersCanEdit"]; |
3926 } | 4368 } |
3927 if (_json.containsKey("groups")) { | 4369 if (_json.containsKey("groups")) { |
3928 groups = _json["groups"]; | 4370 groups = _json["groups"]; |
3929 } | 4371 } |
3930 if (_json.containsKey("users")) { | 4372 if (_json.containsKey("users")) { |
3931 users = _json["users"]; | 4373 users = _json["users"]; |
3932 } | 4374 } |
3933 } | 4375 } |
3934 | 4376 |
3935 core.Map toJson() { | 4377 core.Map<core.String, core.Object> toJson() { |
3936 var _json = new core.Map(); | 4378 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3937 if (domainUsersCanEdit != null) { | 4379 if (domainUsersCanEdit != null) { |
3938 _json["domainUsersCanEdit"] = domainUsersCanEdit; | 4380 _json["domainUsersCanEdit"] = domainUsersCanEdit; |
3939 } | 4381 } |
3940 if (groups != null) { | 4382 if (groups != null) { |
3941 _json["groups"] = groups; | 4383 _json["groups"] = groups; |
3942 } | 4384 } |
3943 if (users != null) { | 4385 if (users != null) { |
3944 _json["users"] = users; | 4386 _json["users"] = users; |
3945 } | 4387 } |
3946 return _json; | 4388 return _json; |
(...skipping 16 matching lines...) Expand all Loading... |
3963 chartId = _json["chartId"]; | 4405 chartId = _json["chartId"]; |
3964 } | 4406 } |
3965 if (_json.containsKey("position")) { | 4407 if (_json.containsKey("position")) { |
3966 position = new EmbeddedObjectPosition.fromJson(_json["position"]); | 4408 position = new EmbeddedObjectPosition.fromJson(_json["position"]); |
3967 } | 4409 } |
3968 if (_json.containsKey("spec")) { | 4410 if (_json.containsKey("spec")) { |
3969 spec = new ChartSpec.fromJson(_json["spec"]); | 4411 spec = new ChartSpec.fromJson(_json["spec"]); |
3970 } | 4412 } |
3971 } | 4413 } |
3972 | 4414 |
3973 core.Map toJson() { | 4415 core.Map<core.String, core.Object> toJson() { |
3974 var _json = new core.Map(); | 4416 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3975 if (chartId != null) { | 4417 if (chartId != null) { |
3976 _json["chartId"] = chartId; | 4418 _json["chartId"] = chartId; |
3977 } | 4419 } |
3978 if (position != null) { | 4420 if (position != null) { |
3979 _json["position"] = (position).toJson(); | 4421 _json["position"] = (position).toJson(); |
3980 } | 4422 } |
3981 if (spec != null) { | 4423 if (spec != null) { |
3982 _json["spec"] = (spec).toJson(); | 4424 _json["spec"] = (spec).toJson(); |
3983 } | 4425 } |
3984 return _json; | 4426 return _json; |
(...skipping 22 matching lines...) Expand all Loading... |
4007 newSheet = _json["newSheet"]; | 4449 newSheet = _json["newSheet"]; |
4008 } | 4450 } |
4009 if (_json.containsKey("overlayPosition")) { | 4451 if (_json.containsKey("overlayPosition")) { |
4010 overlayPosition = new OverlayPosition.fromJson(_json["overlayPosition"]); | 4452 overlayPosition = new OverlayPosition.fromJson(_json["overlayPosition"]); |
4011 } | 4453 } |
4012 if (_json.containsKey("sheetId")) { | 4454 if (_json.containsKey("sheetId")) { |
4013 sheetId = _json["sheetId"]; | 4455 sheetId = _json["sheetId"]; |
4014 } | 4456 } |
4015 } | 4457 } |
4016 | 4458 |
4017 core.Map toJson() { | 4459 core.Map<core.String, core.Object> toJson() { |
4018 var _json = new core.Map(); | 4460 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4019 if (newSheet != null) { | 4461 if (newSheet != null) { |
4020 _json["newSheet"] = newSheet; | 4462 _json["newSheet"] = newSheet; |
4021 } | 4463 } |
4022 if (overlayPosition != null) { | 4464 if (overlayPosition != null) { |
4023 _json["overlayPosition"] = (overlayPosition).toJson(); | 4465 _json["overlayPosition"] = (overlayPosition).toJson(); |
4024 } | 4466 } |
4025 if (sheetId != null) { | 4467 if (sheetId != null) { |
4026 _json["sheetId"] = sheetId; | 4468 _json["sheetId"] = sheetId; |
4027 } | 4469 } |
4028 return _json; | 4470 return _json; |
(...skipping 27 matching lines...) Expand all Loading... |
4056 | 4498 |
4057 ErrorValue.fromJson(core.Map _json) { | 4499 ErrorValue.fromJson(core.Map _json) { |
4058 if (_json.containsKey("message")) { | 4500 if (_json.containsKey("message")) { |
4059 message = _json["message"]; | 4501 message = _json["message"]; |
4060 } | 4502 } |
4061 if (_json.containsKey("type")) { | 4503 if (_json.containsKey("type")) { |
4062 type = _json["type"]; | 4504 type = _json["type"]; |
4063 } | 4505 } |
4064 } | 4506 } |
4065 | 4507 |
4066 core.Map toJson() { | 4508 core.Map<core.String, core.Object> toJson() { |
4067 var _json = new core.Map(); | 4509 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4068 if (message != null) { | 4510 if (message != null) { |
4069 _json["message"] = message; | 4511 _json["message"] = message; |
4070 } | 4512 } |
4071 if (type != null) { | 4513 if (type != null) { |
4072 _json["type"] = type; | 4514 _json["type"] = type; |
4073 } | 4515 } |
4074 return _json; | 4516 return _json; |
4075 } | 4517 } |
4076 } | 4518 } |
4077 | 4519 |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4113 formulaValue = _json["formulaValue"]; | 4555 formulaValue = _json["formulaValue"]; |
4114 } | 4556 } |
4115 if (_json.containsKey("numberValue")) { | 4557 if (_json.containsKey("numberValue")) { |
4116 numberValue = _json["numberValue"]; | 4558 numberValue = _json["numberValue"]; |
4117 } | 4559 } |
4118 if (_json.containsKey("stringValue")) { | 4560 if (_json.containsKey("stringValue")) { |
4119 stringValue = _json["stringValue"]; | 4561 stringValue = _json["stringValue"]; |
4120 } | 4562 } |
4121 } | 4563 } |
4122 | 4564 |
4123 core.Map toJson() { | 4565 core.Map<core.String, core.Object> toJson() { |
4124 var _json = new core.Map(); | 4566 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4125 if (boolValue != null) { | 4567 if (boolValue != null) { |
4126 _json["boolValue"] = boolValue; | 4568 _json["boolValue"] = boolValue; |
4127 } | 4569 } |
4128 if (errorValue != null) { | 4570 if (errorValue != null) { |
4129 _json["errorValue"] = (errorValue).toJson(); | 4571 _json["errorValue"] = (errorValue).toJson(); |
4130 } | 4572 } |
4131 if (formulaValue != null) { | 4573 if (formulaValue != null) { |
4132 _json["formulaValue"] = formulaValue; | 4574 _json["formulaValue"] = formulaValue; |
4133 } | 4575 } |
4134 if (numberValue != null) { | 4576 if (numberValue != null) { |
(...skipping 21 matching lines...) Expand all Loading... |
4156 | 4598 |
4157 FilterCriteria.fromJson(core.Map _json) { | 4599 FilterCriteria.fromJson(core.Map _json) { |
4158 if (_json.containsKey("condition")) { | 4600 if (_json.containsKey("condition")) { |
4159 condition = new BooleanCondition.fromJson(_json["condition"]); | 4601 condition = new BooleanCondition.fromJson(_json["condition"]); |
4160 } | 4602 } |
4161 if (_json.containsKey("hiddenValues")) { | 4603 if (_json.containsKey("hiddenValues")) { |
4162 hiddenValues = _json["hiddenValues"]; | 4604 hiddenValues = _json["hiddenValues"]; |
4163 } | 4605 } |
4164 } | 4606 } |
4165 | 4607 |
4166 core.Map toJson() { | 4608 core.Map<core.String, core.Object> toJson() { |
4167 var _json = new core.Map(); | 4609 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4168 if (condition != null) { | 4610 if (condition != null) { |
4169 _json["condition"] = (condition).toJson(); | 4611 _json["condition"] = (condition).toJson(); |
4170 } | 4612 } |
4171 if (hiddenValues != null) { | 4613 if (hiddenValues != null) { |
4172 _json["hiddenValues"] = hiddenValues; | 4614 _json["hiddenValues"] = hiddenValues; |
4173 } | 4615 } |
4174 return _json; | 4616 return _json; |
4175 } | 4617 } |
4176 } | 4618 } |
4177 | 4619 |
(...skipping 26 matching lines...) Expand all Loading... |
4204 * are equal in the earlier specifications. | 4646 * are equal in the earlier specifications. |
4205 */ | 4647 */ |
4206 core.List<SortSpec> sortSpecs; | 4648 core.List<SortSpec> sortSpecs; |
4207 /** The name of the filter view. */ | 4649 /** The name of the filter view. */ |
4208 core.String title; | 4650 core.String title; |
4209 | 4651 |
4210 FilterView(); | 4652 FilterView(); |
4211 | 4653 |
4212 FilterView.fromJson(core.Map _json) { | 4654 FilterView.fromJson(core.Map _json) { |
4213 if (_json.containsKey("criteria")) { | 4655 if (_json.containsKey("criteria")) { |
4214 criteria = commons.mapMap(_json["criteria"], (item) => new FilterCriteria.
fromJson(item)); | 4656 criteria = commons.mapMap<core.Map<core.String, core.Object>, FilterCriter
ia>(_json["criteria"], (core.Map<core.String, core.Object> item) => new FilterCr
iteria.fromJson(item)); |
4215 } | 4657 } |
4216 if (_json.containsKey("filterViewId")) { | 4658 if (_json.containsKey("filterViewId")) { |
4217 filterViewId = _json["filterViewId"]; | 4659 filterViewId = _json["filterViewId"]; |
4218 } | 4660 } |
4219 if (_json.containsKey("namedRangeId")) { | 4661 if (_json.containsKey("namedRangeId")) { |
4220 namedRangeId = _json["namedRangeId"]; | 4662 namedRangeId = _json["namedRangeId"]; |
4221 } | 4663 } |
4222 if (_json.containsKey("range")) { | 4664 if (_json.containsKey("range")) { |
4223 range = new GridRange.fromJson(_json["range"]); | 4665 range = new GridRange.fromJson(_json["range"]); |
4224 } | 4666 } |
4225 if (_json.containsKey("sortSpecs")) { | 4667 if (_json.containsKey("sortSpecs")) { |
4226 sortSpecs = _json["sortSpecs"].map((value) => new SortSpec.fromJson(value)
).toList(); | 4668 sortSpecs = _json["sortSpecs"].map((value) => new SortSpec.fromJson(value)
).toList(); |
4227 } | 4669 } |
4228 if (_json.containsKey("title")) { | 4670 if (_json.containsKey("title")) { |
4229 title = _json["title"]; | 4671 title = _json["title"]; |
4230 } | 4672 } |
4231 } | 4673 } |
4232 | 4674 |
4233 core.Map toJson() { | 4675 core.Map<core.String, core.Object> toJson() { |
4234 var _json = new core.Map(); | 4676 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4235 if (criteria != null) { | 4677 if (criteria != null) { |
4236 _json["criteria"] = commons.mapMap(criteria, (item) => (item).toJson()); | 4678 _json["criteria"] = commons.mapMap<FilterCriteria, core.Map<core.String, c
ore.Object>>(criteria, (FilterCriteria item) => (item).toJson()); |
4237 } | 4679 } |
4238 if (filterViewId != null) { | 4680 if (filterViewId != null) { |
4239 _json["filterViewId"] = filterViewId; | 4681 _json["filterViewId"] = filterViewId; |
4240 } | 4682 } |
4241 if (namedRangeId != null) { | 4683 if (namedRangeId != null) { |
4242 _json["namedRangeId"] = namedRangeId; | 4684 _json["namedRangeId"] = namedRangeId; |
4243 } | 4685 } |
4244 if (range != null) { | 4686 if (range != null) { |
4245 _json["range"] = (range).toJson(); | 4687 _json["range"] = (range).toJson(); |
4246 } | 4688 } |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4312 replacement = _json["replacement"]; | 4754 replacement = _json["replacement"]; |
4313 } | 4755 } |
4314 if (_json.containsKey("searchByRegex")) { | 4756 if (_json.containsKey("searchByRegex")) { |
4315 searchByRegex = _json["searchByRegex"]; | 4757 searchByRegex = _json["searchByRegex"]; |
4316 } | 4758 } |
4317 if (_json.containsKey("sheetId")) { | 4759 if (_json.containsKey("sheetId")) { |
4318 sheetId = _json["sheetId"]; | 4760 sheetId = _json["sheetId"]; |
4319 } | 4761 } |
4320 } | 4762 } |
4321 | 4763 |
4322 core.Map toJson() { | 4764 core.Map<core.String, core.Object> toJson() { |
4323 var _json = new core.Map(); | 4765 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4324 if (allSheets != null) { | 4766 if (allSheets != null) { |
4325 _json["allSheets"] = allSheets; | 4767 _json["allSheets"] = allSheets; |
4326 } | 4768 } |
4327 if (find != null) { | 4769 if (find != null) { |
4328 _json["find"] = find; | 4770 _json["find"] = find; |
4329 } | 4771 } |
4330 if (includeFormulas != null) { | 4772 if (includeFormulas != null) { |
4331 _json["includeFormulas"] = includeFormulas; | 4773 _json["includeFormulas"] = includeFormulas; |
4332 } | 4774 } |
4333 if (matchCase != null) { | 4775 if (matchCase != null) { |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4382 rowsChanged = _json["rowsChanged"]; | 4824 rowsChanged = _json["rowsChanged"]; |
4383 } | 4825 } |
4384 if (_json.containsKey("sheetsChanged")) { | 4826 if (_json.containsKey("sheetsChanged")) { |
4385 sheetsChanged = _json["sheetsChanged"]; | 4827 sheetsChanged = _json["sheetsChanged"]; |
4386 } | 4828 } |
4387 if (_json.containsKey("valuesChanged")) { | 4829 if (_json.containsKey("valuesChanged")) { |
4388 valuesChanged = _json["valuesChanged"]; | 4830 valuesChanged = _json["valuesChanged"]; |
4389 } | 4831 } |
4390 } | 4832 } |
4391 | 4833 |
4392 core.Map toJson() { | 4834 core.Map<core.String, core.Object> toJson() { |
4393 var _json = new core.Map(); | 4835 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4394 if (formulasChanged != null) { | 4836 if (formulasChanged != null) { |
4395 _json["formulasChanged"] = formulasChanged; | 4837 _json["formulasChanged"] = formulasChanged; |
4396 } | 4838 } |
4397 if (occurrencesChanged != null) { | 4839 if (occurrencesChanged != null) { |
4398 _json["occurrencesChanged"] = occurrencesChanged; | 4840 _json["occurrencesChanged"] = occurrencesChanged; |
4399 } | 4841 } |
4400 if (rowsChanged != null) { | 4842 if (rowsChanged != null) { |
4401 _json["rowsChanged"] = rowsChanged; | 4843 _json["rowsChanged"] = rowsChanged; |
4402 } | 4844 } |
4403 if (sheetsChanged != null) { | 4845 if (sheetsChanged != null) { |
(...skipping 27 matching lines...) Expand all Loading... |
4431 maxpoint = new InterpolationPoint.fromJson(_json["maxpoint"]); | 4873 maxpoint = new InterpolationPoint.fromJson(_json["maxpoint"]); |
4432 } | 4874 } |
4433 if (_json.containsKey("midpoint")) { | 4875 if (_json.containsKey("midpoint")) { |
4434 midpoint = new InterpolationPoint.fromJson(_json["midpoint"]); | 4876 midpoint = new InterpolationPoint.fromJson(_json["midpoint"]); |
4435 } | 4877 } |
4436 if (_json.containsKey("minpoint")) { | 4878 if (_json.containsKey("minpoint")) { |
4437 minpoint = new InterpolationPoint.fromJson(_json["minpoint"]); | 4879 minpoint = new InterpolationPoint.fromJson(_json["minpoint"]); |
4438 } | 4880 } |
4439 } | 4881 } |
4440 | 4882 |
4441 core.Map toJson() { | 4883 core.Map<core.String, core.Object> toJson() { |
4442 var _json = new core.Map(); | 4884 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4443 if (maxpoint != null) { | 4885 if (maxpoint != null) { |
4444 _json["maxpoint"] = (maxpoint).toJson(); | 4886 _json["maxpoint"] = (maxpoint).toJson(); |
4445 } | 4887 } |
4446 if (midpoint != null) { | 4888 if (midpoint != null) { |
4447 _json["midpoint"] = (midpoint).toJson(); | 4889 _json["midpoint"] = (midpoint).toJson(); |
4448 } | 4890 } |
4449 if (minpoint != null) { | 4891 if (minpoint != null) { |
4450 _json["minpoint"] = (minpoint).toJson(); | 4892 _json["minpoint"] = (minpoint).toJson(); |
4451 } | 4893 } |
4452 return _json; | 4894 return _json; |
(...skipping 19 matching lines...) Expand all Loading... |
4472 columnIndex = _json["columnIndex"]; | 4914 columnIndex = _json["columnIndex"]; |
4473 } | 4915 } |
4474 if (_json.containsKey("rowIndex")) { | 4916 if (_json.containsKey("rowIndex")) { |
4475 rowIndex = _json["rowIndex"]; | 4917 rowIndex = _json["rowIndex"]; |
4476 } | 4918 } |
4477 if (_json.containsKey("sheetId")) { | 4919 if (_json.containsKey("sheetId")) { |
4478 sheetId = _json["sheetId"]; | 4920 sheetId = _json["sheetId"]; |
4479 } | 4921 } |
4480 } | 4922 } |
4481 | 4923 |
4482 core.Map toJson() { | 4924 core.Map<core.String, core.Object> toJson() { |
4483 var _json = new core.Map(); | 4925 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4484 if (columnIndex != null) { | 4926 if (columnIndex != null) { |
4485 _json["columnIndex"] = columnIndex; | 4927 _json["columnIndex"] = columnIndex; |
4486 } | 4928 } |
4487 if (rowIndex != null) { | 4929 if (rowIndex != null) { |
4488 _json["rowIndex"] = rowIndex; | 4930 _json["rowIndex"] = rowIndex; |
4489 } | 4931 } |
4490 if (sheetId != null) { | 4932 if (sheetId != null) { |
4491 _json["sheetId"] = sheetId; | 4933 _json["sheetId"] = sheetId; |
4492 } | 4934 } |
4493 return _json; | 4935 return _json; |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4531 rowMetadata = _json["rowMetadata"].map((value) => new DimensionProperties.
fromJson(value)).toList(); | 4973 rowMetadata = _json["rowMetadata"].map((value) => new DimensionProperties.
fromJson(value)).toList(); |
4532 } | 4974 } |
4533 if (_json.containsKey("startColumn")) { | 4975 if (_json.containsKey("startColumn")) { |
4534 startColumn = _json["startColumn"]; | 4976 startColumn = _json["startColumn"]; |
4535 } | 4977 } |
4536 if (_json.containsKey("startRow")) { | 4978 if (_json.containsKey("startRow")) { |
4537 startRow = _json["startRow"]; | 4979 startRow = _json["startRow"]; |
4538 } | 4980 } |
4539 } | 4981 } |
4540 | 4982 |
4541 core.Map toJson() { | 4983 core.Map<core.String, core.Object> toJson() { |
4542 var _json = new core.Map(); | 4984 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4543 if (columnMetadata != null) { | 4985 if (columnMetadata != null) { |
4544 _json["columnMetadata"] = columnMetadata.map((value) => (value).toJson()).
toList(); | 4986 _json["columnMetadata"] = columnMetadata.map((value) => (value).toJson()).
toList(); |
4545 } | 4987 } |
4546 if (rowData != null) { | 4988 if (rowData != null) { |
4547 _json["rowData"] = rowData.map((value) => (value).toJson()).toList(); | 4989 _json["rowData"] = rowData.map((value) => (value).toJson()).toList(); |
4548 } | 4990 } |
4549 if (rowMetadata != null) { | 4991 if (rowMetadata != null) { |
4550 _json["rowMetadata"] = rowMetadata.map((value) => (value).toJson()).toList
(); | 4992 _json["rowMetadata"] = rowMetadata.map((value) => (value).toJson()).toList
(); |
4551 } | 4993 } |
4552 if (startColumn != null) { | 4994 if (startColumn != null) { |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4585 frozenRowCount = _json["frozenRowCount"]; | 5027 frozenRowCount = _json["frozenRowCount"]; |
4586 } | 5028 } |
4587 if (_json.containsKey("hideGridlines")) { | 5029 if (_json.containsKey("hideGridlines")) { |
4588 hideGridlines = _json["hideGridlines"]; | 5030 hideGridlines = _json["hideGridlines"]; |
4589 } | 5031 } |
4590 if (_json.containsKey("rowCount")) { | 5032 if (_json.containsKey("rowCount")) { |
4591 rowCount = _json["rowCount"]; | 5033 rowCount = _json["rowCount"]; |
4592 } | 5034 } |
4593 } | 5035 } |
4594 | 5036 |
4595 core.Map toJson() { | 5037 core.Map<core.String, core.Object> toJson() { |
4596 var _json = new core.Map(); | 5038 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4597 if (columnCount != null) { | 5039 if (columnCount != null) { |
4598 _json["columnCount"] = columnCount; | 5040 _json["columnCount"] = columnCount; |
4599 } | 5041 } |
4600 if (frozenColumnCount != null) { | 5042 if (frozenColumnCount != null) { |
4601 _json["frozenColumnCount"] = frozenColumnCount; | 5043 _json["frozenColumnCount"] = frozenColumnCount; |
4602 } | 5044 } |
4603 if (frozenRowCount != null) { | 5045 if (frozenRowCount != null) { |
4604 _json["frozenRowCount"] = frozenRowCount; | 5046 _json["frozenRowCount"] = frozenRowCount; |
4605 } | 5047 } |
4606 if (hideGridlines != null) { | 5048 if (hideGridlines != null) { |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4669 sheetId = _json["sheetId"]; | 5111 sheetId = _json["sheetId"]; |
4670 } | 5112 } |
4671 if (_json.containsKey("startColumnIndex")) { | 5113 if (_json.containsKey("startColumnIndex")) { |
4672 startColumnIndex = _json["startColumnIndex"]; | 5114 startColumnIndex = _json["startColumnIndex"]; |
4673 } | 5115 } |
4674 if (_json.containsKey("startRowIndex")) { | 5116 if (_json.containsKey("startRowIndex")) { |
4675 startRowIndex = _json["startRowIndex"]; | 5117 startRowIndex = _json["startRowIndex"]; |
4676 } | 5118 } |
4677 } | 5119 } |
4678 | 5120 |
4679 core.Map toJson() { | 5121 core.Map<core.String, core.Object> toJson() { |
4680 var _json = new core.Map(); | 5122 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4681 if (endColumnIndex != null) { | 5123 if (endColumnIndex != null) { |
4682 _json["endColumnIndex"] = endColumnIndex; | 5124 _json["endColumnIndex"] = endColumnIndex; |
4683 } | 5125 } |
4684 if (endRowIndex != null) { | 5126 if (endRowIndex != null) { |
4685 _json["endRowIndex"] = endRowIndex; | 5127 _json["endRowIndex"] = endRowIndex; |
4686 } | 5128 } |
4687 if (sheetId != null) { | 5129 if (sheetId != null) { |
4688 _json["sheetId"] = sheetId; | 5130 _json["sheetId"] = sheetId; |
4689 } | 5131 } |
4690 if (startColumnIndex != null) { | 5132 if (startColumnIndex != null) { |
4691 _json["startColumnIndex"] = startColumnIndex; | 5133 _json["startColumnIndex"] = startColumnIndex; |
4692 } | 5134 } |
4693 if (startRowIndex != null) { | 5135 if (startRowIndex != null) { |
4694 _json["startRowIndex"] = startRowIndex; | 5136 _json["startRowIndex"] = startRowIndex; |
4695 } | 5137 } |
4696 return _json; | 5138 return _json; |
4697 } | 5139 } |
4698 } | 5140 } |
4699 | 5141 |
| 5142 /** |
| 5143 * A <a href="/chart/interactive/docs/gallery/histogram">histogram chart</a>. |
| 5144 * A histogram chart groups data items into bins, displaying each bin as a |
| 5145 * column of stacked items. Histograms are used to display the distribution |
| 5146 * of a dataset. Each column of items represents a range into which those |
| 5147 * items fall. The number of bins can be chosen automatically or specified |
| 5148 * explicitly. |
| 5149 */ |
| 5150 class HistogramChartSpec { |
| 5151 /** |
| 5152 * By default the bucket size (the range of values stacked in a single |
| 5153 * column) is chosen automatically, but it may be overridden here. |
| 5154 * E.g., A bucket size of 1.5 results in buckets from 0 - 1.5, 1.5 - 3.0, etc. |
| 5155 * Cannot be negative. |
| 5156 * This field is optional. |
| 5157 */ |
| 5158 core.double bucketSize; |
| 5159 /** |
| 5160 * The position of the chart legend. |
| 5161 * Possible string values are: |
| 5162 * - "HISTOGRAM_CHART_LEGEND_POSITION_UNSPECIFIED" : Default value, do not |
| 5163 * use. |
| 5164 * - "BOTTOM_LEGEND" : The legend is rendered on the bottom of the chart. |
| 5165 * - "LEFT_LEGEND" : The legend is rendered on the left of the chart. |
| 5166 * - "RIGHT_LEGEND" : The legend is rendered on the right of the chart. |
| 5167 * - "TOP_LEGEND" : The legend is rendered on the top of the chart. |
| 5168 * - "NO_LEGEND" : No legend is rendered. |
| 5169 * - "INSIDE_LEGEND" : The legend is rendered inside the chart area. |
| 5170 */ |
| 5171 core.String legendPosition; |
| 5172 /** |
| 5173 * The outlier percentile is used to ensure that outliers do not adversely |
| 5174 * affect the calculation of bucket sizes. For example, setting an outlier |
| 5175 * percentile of 0.05 indicates that the top and bottom 5% of values when |
| 5176 * calculating buckets. The values are still included in the chart, they will |
| 5177 * be added to the first or last buckets instead of their own buckets. |
| 5178 * Must be between 0.0 and 0.5. |
| 5179 */ |
| 5180 core.double outlierPercentile; |
| 5181 /** |
| 5182 * The series for a histogram may be either a single series of values to be |
| 5183 * bucketed or multiple series, each of the same length, containing the name |
| 5184 * of the series followed by the values to be bucketed for that series. |
| 5185 */ |
| 5186 core.List<HistogramSeries> series; |
| 5187 /** |
| 5188 * Whether horizontal divider lines should be displayed between items in each |
| 5189 * column. |
| 5190 */ |
| 5191 core.bool showItemDividers; |
| 5192 |
| 5193 HistogramChartSpec(); |
| 5194 |
| 5195 HistogramChartSpec.fromJson(core.Map _json) { |
| 5196 if (_json.containsKey("bucketSize")) { |
| 5197 bucketSize = _json["bucketSize"]; |
| 5198 } |
| 5199 if (_json.containsKey("legendPosition")) { |
| 5200 legendPosition = _json["legendPosition"]; |
| 5201 } |
| 5202 if (_json.containsKey("outlierPercentile")) { |
| 5203 outlierPercentile = _json["outlierPercentile"]; |
| 5204 } |
| 5205 if (_json.containsKey("series")) { |
| 5206 series = _json["series"].map((value) => new HistogramSeries.fromJson(value
)).toList(); |
| 5207 } |
| 5208 if (_json.containsKey("showItemDividers")) { |
| 5209 showItemDividers = _json["showItemDividers"]; |
| 5210 } |
| 5211 } |
| 5212 |
| 5213 core.Map<core.String, core.Object> toJson() { |
| 5214 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 5215 if (bucketSize != null) { |
| 5216 _json["bucketSize"] = bucketSize; |
| 5217 } |
| 5218 if (legendPosition != null) { |
| 5219 _json["legendPosition"] = legendPosition; |
| 5220 } |
| 5221 if (outlierPercentile != null) { |
| 5222 _json["outlierPercentile"] = outlierPercentile; |
| 5223 } |
| 5224 if (series != null) { |
| 5225 _json["series"] = series.map((value) => (value).toJson()).toList(); |
| 5226 } |
| 5227 if (showItemDividers != null) { |
| 5228 _json["showItemDividers"] = showItemDividers; |
| 5229 } |
| 5230 return _json; |
| 5231 } |
| 5232 } |
| 5233 |
| 5234 /** A histogram series containing the series color and data. */ |
| 5235 class HistogramSeries { |
| 5236 /** |
| 5237 * The color of the column representing this series in each bucket. |
| 5238 * This field is optional. |
| 5239 */ |
| 5240 Color barColor; |
| 5241 /** The data for this histogram series. */ |
| 5242 ChartData data; |
| 5243 |
| 5244 HistogramSeries(); |
| 5245 |
| 5246 HistogramSeries.fromJson(core.Map _json) { |
| 5247 if (_json.containsKey("barColor")) { |
| 5248 barColor = new Color.fromJson(_json["barColor"]); |
| 5249 } |
| 5250 if (_json.containsKey("data")) { |
| 5251 data = new ChartData.fromJson(_json["data"]); |
| 5252 } |
| 5253 } |
| 5254 |
| 5255 core.Map<core.String, core.Object> toJson() { |
| 5256 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 5257 if (barColor != null) { |
| 5258 _json["barColor"] = (barColor).toJson(); |
| 5259 } |
| 5260 if (data != null) { |
| 5261 _json["data"] = (data).toJson(); |
| 5262 } |
| 5263 return _json; |
| 5264 } |
| 5265 } |
| 5266 |
4700 /** Inserts rows or columns in a sheet at a particular index. */ | 5267 /** Inserts rows or columns in a sheet at a particular index. */ |
4701 class InsertDimensionRequest { | 5268 class InsertDimensionRequest { |
4702 /** | 5269 /** |
4703 * Whether dimension properties should be extended from the dimensions | 5270 * Whether dimension properties should be extended from the dimensions |
4704 * before or after the newly inserted dimensions. | 5271 * before or after the newly inserted dimensions. |
4705 * True to inherit from the dimensions before (in which case the start | 5272 * True to inherit from the dimensions before (in which case the start |
4706 * index must be greater than 0), and false to inherit from the dimensions | 5273 * index must be greater than 0), and false to inherit from the dimensions |
4707 * after. | 5274 * after. |
4708 * | 5275 * |
4709 * For example, if row index 0 has red background and row index 1 | 5276 * For example, if row index 0 has red background and row index 1 |
(...skipping 13 matching lines...) Expand all Loading... |
4723 | 5290 |
4724 InsertDimensionRequest.fromJson(core.Map _json) { | 5291 InsertDimensionRequest.fromJson(core.Map _json) { |
4725 if (_json.containsKey("inheritFromBefore")) { | 5292 if (_json.containsKey("inheritFromBefore")) { |
4726 inheritFromBefore = _json["inheritFromBefore"]; | 5293 inheritFromBefore = _json["inheritFromBefore"]; |
4727 } | 5294 } |
4728 if (_json.containsKey("range")) { | 5295 if (_json.containsKey("range")) { |
4729 range = new DimensionRange.fromJson(_json["range"]); | 5296 range = new DimensionRange.fromJson(_json["range"]); |
4730 } | 5297 } |
4731 } | 5298 } |
4732 | 5299 |
4733 core.Map toJson() { | 5300 core.Map<core.String, core.Object> toJson() { |
4734 var _json = new core.Map(); | 5301 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4735 if (inheritFromBefore != null) { | 5302 if (inheritFromBefore != null) { |
4736 _json["inheritFromBefore"] = inheritFromBefore; | 5303 _json["inheritFromBefore"] = inheritFromBefore; |
4737 } | 5304 } |
4738 if (range != null) { | 5305 if (range != null) { |
4739 _json["range"] = (range).toJson(); | 5306 _json["range"] = (range).toJson(); |
4740 } | 5307 } |
4741 return _json; | 5308 return _json; |
4742 } | 5309 } |
4743 } | 5310 } |
4744 | 5311 |
(...skipping 16 matching lines...) Expand all Loading... |
4761 | 5328 |
4762 InsertRangeRequest.fromJson(core.Map _json) { | 5329 InsertRangeRequest.fromJson(core.Map _json) { |
4763 if (_json.containsKey("range")) { | 5330 if (_json.containsKey("range")) { |
4764 range = new GridRange.fromJson(_json["range"]); | 5331 range = new GridRange.fromJson(_json["range"]); |
4765 } | 5332 } |
4766 if (_json.containsKey("shiftDimension")) { | 5333 if (_json.containsKey("shiftDimension")) { |
4767 shiftDimension = _json["shiftDimension"]; | 5334 shiftDimension = _json["shiftDimension"]; |
4768 } | 5335 } |
4769 } | 5336 } |
4770 | 5337 |
4771 core.Map toJson() { | 5338 core.Map<core.String, core.Object> toJson() { |
4772 var _json = new core.Map(); | 5339 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4773 if (range != null) { | 5340 if (range != null) { |
4774 _json["range"] = (range).toJson(); | 5341 _json["range"] = (range).toJson(); |
4775 } | 5342 } |
4776 if (shiftDimension != null) { | 5343 if (shiftDimension != null) { |
4777 _json["shiftDimension"] = shiftDimension; | 5344 _json["shiftDimension"] = shiftDimension; |
4778 } | 5345 } |
4779 return _json; | 5346 return _json; |
4780 } | 5347 } |
4781 } | 5348 } |
4782 | 5349 |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4825 color = new Color.fromJson(_json["color"]); | 5392 color = new Color.fromJson(_json["color"]); |
4826 } | 5393 } |
4827 if (_json.containsKey("type")) { | 5394 if (_json.containsKey("type")) { |
4828 type = _json["type"]; | 5395 type = _json["type"]; |
4829 } | 5396 } |
4830 if (_json.containsKey("value")) { | 5397 if (_json.containsKey("value")) { |
4831 value = _json["value"]; | 5398 value = _json["value"]; |
4832 } | 5399 } |
4833 } | 5400 } |
4834 | 5401 |
4835 core.Map toJson() { | 5402 core.Map<core.String, core.Object> toJson() { |
4836 var _json = new core.Map(); | 5403 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4837 if (color != null) { | 5404 if (color != null) { |
4838 _json["color"] = (color).toJson(); | 5405 _json["color"] = (color).toJson(); |
4839 } | 5406 } |
4840 if (type != null) { | 5407 if (type != null) { |
4841 _json["type"] = type; | 5408 _json["type"] = type; |
4842 } | 5409 } |
4843 if (value != null) { | 5410 if (value != null) { |
4844 _json["value"] = value; | 5411 _json["value"] = value; |
4845 } | 5412 } |
4846 return _json; | 5413 return _json; |
(...skipping 20 matching lines...) Expand all Loading... |
4867 | 5434 |
4868 IterativeCalculationSettings.fromJson(core.Map _json) { | 5435 IterativeCalculationSettings.fromJson(core.Map _json) { |
4869 if (_json.containsKey("convergenceThreshold")) { | 5436 if (_json.containsKey("convergenceThreshold")) { |
4870 convergenceThreshold = _json["convergenceThreshold"]; | 5437 convergenceThreshold = _json["convergenceThreshold"]; |
4871 } | 5438 } |
4872 if (_json.containsKey("maxIterations")) { | 5439 if (_json.containsKey("maxIterations")) { |
4873 maxIterations = _json["maxIterations"]; | 5440 maxIterations = _json["maxIterations"]; |
4874 } | 5441 } |
4875 } | 5442 } |
4876 | 5443 |
4877 core.Map toJson() { | 5444 core.Map<core.String, core.Object> toJson() { |
4878 var _json = new core.Map(); | 5445 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4879 if (convergenceThreshold != null) { | 5446 if (convergenceThreshold != null) { |
4880 _json["convergenceThreshold"] = convergenceThreshold; | 5447 _json["convergenceThreshold"] = convergenceThreshold; |
4881 } | 5448 } |
4882 if (maxIterations != null) { | 5449 if (maxIterations != null) { |
4883 _json["maxIterations"] = maxIterations; | 5450 _json["maxIterations"] = maxIterations; |
4884 } | 5451 } |
4885 return _json; | 5452 return _json; |
4886 } | 5453 } |
4887 } | 5454 } |
4888 | 5455 |
(...skipping 14 matching lines...) Expand all Loading... |
4903 | 5470 |
4904 MergeCellsRequest.fromJson(core.Map _json) { | 5471 MergeCellsRequest.fromJson(core.Map _json) { |
4905 if (_json.containsKey("mergeType")) { | 5472 if (_json.containsKey("mergeType")) { |
4906 mergeType = _json["mergeType"]; | 5473 mergeType = _json["mergeType"]; |
4907 } | 5474 } |
4908 if (_json.containsKey("range")) { | 5475 if (_json.containsKey("range")) { |
4909 range = new GridRange.fromJson(_json["range"]); | 5476 range = new GridRange.fromJson(_json["range"]); |
4910 } | 5477 } |
4911 } | 5478 } |
4912 | 5479 |
4913 core.Map toJson() { | 5480 core.Map<core.String, core.Object> toJson() { |
4914 var _json = new core.Map(); | 5481 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4915 if (mergeType != null) { | 5482 if (mergeType != null) { |
4916 _json["mergeType"] = mergeType; | 5483 _json["mergeType"] = mergeType; |
4917 } | 5484 } |
4918 if (range != null) { | 5485 if (range != null) { |
4919 _json["range"] = (range).toJson(); | 5486 _json["range"] = (range).toJson(); |
4920 } | 5487 } |
4921 return _json; | 5488 return _json; |
4922 } | 5489 } |
4923 } | 5490 } |
4924 | 5491 |
(...skipping 21 matching lines...) Expand all Loading... |
4946 | 5513 |
4947 MoveDimensionRequest.fromJson(core.Map _json) { | 5514 MoveDimensionRequest.fromJson(core.Map _json) { |
4948 if (_json.containsKey("destinationIndex")) { | 5515 if (_json.containsKey("destinationIndex")) { |
4949 destinationIndex = _json["destinationIndex"]; | 5516 destinationIndex = _json["destinationIndex"]; |
4950 } | 5517 } |
4951 if (_json.containsKey("source")) { | 5518 if (_json.containsKey("source")) { |
4952 source = new DimensionRange.fromJson(_json["source"]); | 5519 source = new DimensionRange.fromJson(_json["source"]); |
4953 } | 5520 } |
4954 } | 5521 } |
4955 | 5522 |
4956 core.Map toJson() { | 5523 core.Map<core.String, core.Object> toJson() { |
4957 var _json = new core.Map(); | 5524 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4958 if (destinationIndex != null) { | 5525 if (destinationIndex != null) { |
4959 _json["destinationIndex"] = destinationIndex; | 5526 _json["destinationIndex"] = destinationIndex; |
4960 } | 5527 } |
4961 if (source != null) { | 5528 if (source != null) { |
4962 _json["source"] = (source).toJson(); | 5529 _json["source"] = (source).toJson(); |
4963 } | 5530 } |
4964 return _json; | 5531 return _json; |
4965 } | 5532 } |
4966 } | 5533 } |
4967 | 5534 |
(...skipping 13 matching lines...) Expand all Loading... |
4981 name = _json["name"]; | 5548 name = _json["name"]; |
4982 } | 5549 } |
4983 if (_json.containsKey("namedRangeId")) { | 5550 if (_json.containsKey("namedRangeId")) { |
4984 namedRangeId = _json["namedRangeId"]; | 5551 namedRangeId = _json["namedRangeId"]; |
4985 } | 5552 } |
4986 if (_json.containsKey("range")) { | 5553 if (_json.containsKey("range")) { |
4987 range = new GridRange.fromJson(_json["range"]); | 5554 range = new GridRange.fromJson(_json["range"]); |
4988 } | 5555 } |
4989 } | 5556 } |
4990 | 5557 |
4991 core.Map toJson() { | 5558 core.Map<core.String, core.Object> toJson() { |
4992 var _json = new core.Map(); | 5559 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4993 if (name != null) { | 5560 if (name != null) { |
4994 _json["name"] = name; | 5561 _json["name"] = name; |
4995 } | 5562 } |
4996 if (namedRangeId != null) { | 5563 if (namedRangeId != null) { |
4997 _json["namedRangeId"] = namedRangeId; | 5564 _json["namedRangeId"] = namedRangeId; |
4998 } | 5565 } |
4999 if (range != null) { | 5566 if (range != null) { |
5000 _json["range"] = (range).toJson(); | 5567 _json["range"] = (range).toJson(); |
5001 } | 5568 } |
5002 return _json; | 5569 return _json; |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5035 | 5602 |
5036 NumberFormat.fromJson(core.Map _json) { | 5603 NumberFormat.fromJson(core.Map _json) { |
5037 if (_json.containsKey("pattern")) { | 5604 if (_json.containsKey("pattern")) { |
5038 pattern = _json["pattern"]; | 5605 pattern = _json["pattern"]; |
5039 } | 5606 } |
5040 if (_json.containsKey("type")) { | 5607 if (_json.containsKey("type")) { |
5041 type = _json["type"]; | 5608 type = _json["type"]; |
5042 } | 5609 } |
5043 } | 5610 } |
5044 | 5611 |
5045 core.Map toJson() { | 5612 core.Map<core.String, core.Object> toJson() { |
5046 var _json = new core.Map(); | 5613 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
5047 if (pattern != null) { | 5614 if (pattern != null) { |
5048 _json["pattern"] = pattern; | 5615 _json["pattern"] = pattern; |
5049 } | 5616 } |
5050 if (type != null) { | 5617 if (type != null) { |
5051 _json["type"] = type; | 5618 _json["type"] = type; |
5052 } | 5619 } |
5053 return _json; | 5620 return _json; |
5054 } | 5621 } |
5055 } | 5622 } |
5056 | 5623 |
| 5624 /** |
| 5625 * An <a href="/chart/interactive/docs/gallery/orgchart">org chart</a>. |
| 5626 * Org charts require a unique set of labels in labels and may |
| 5627 * optionally include parent_labels and tooltips. |
| 5628 * parent_labels contain, for each node, the label identifying the parent |
| 5629 * node. tooltips contain, for each node, an optional tooltip. |
| 5630 * |
| 5631 * For example, to describe an OrgChart with Alice as the CEO, Bob as the |
| 5632 * President (reporting to Alice) and Cathy as VP of Sales (also reporting to |
| 5633 * Alice), have labels contain "Alice", "Bob", "Cathy", |
| 5634 * parent_labels contain "", "Alice", "Alice" and tooltips contain |
| 5635 * "CEO", "President", "VP Sales". |
| 5636 */ |
| 5637 class OrgChartSpec { |
| 5638 /** |
| 5639 * The data containing the labels for all the nodes in the chart. Labels |
| 5640 * must be unique. |
| 5641 */ |
| 5642 ChartData labels; |
| 5643 /** The color of the org chart nodes. */ |
| 5644 Color nodeColor; |
| 5645 /** |
| 5646 * The size of the org chart nodes. |
| 5647 * Possible string values are: |
| 5648 * - "ORG_CHART_LABEL_SIZE_UNSPECIFIED" : Default value, do not use. |
| 5649 * - "SMALL" : The small org chart node size. |
| 5650 * - "MEDIUM" : The medium org chart node size. |
| 5651 * - "LARGE" : The large org chart node size. |
| 5652 */ |
| 5653 core.String nodeSize; |
| 5654 /** |
| 5655 * The data containing the label of the parent for the corresponding node. |
| 5656 * A blank value indicates that the node has no parent and is a top-level |
| 5657 * node. |
| 5658 * This field is optional. |
| 5659 */ |
| 5660 ChartData parentLabels; |
| 5661 /** The color of the selected org chart nodes. */ |
| 5662 Color selectedNodeColor; |
| 5663 /** |
| 5664 * The data containing the tooltip for the corresponding node. A blank value |
| 5665 * results in no tooltip being displayed for the node. |
| 5666 * This field is optional. |
| 5667 */ |
| 5668 ChartData tooltips; |
| 5669 |
| 5670 OrgChartSpec(); |
| 5671 |
| 5672 OrgChartSpec.fromJson(core.Map _json) { |
| 5673 if (_json.containsKey("labels")) { |
| 5674 labels = new ChartData.fromJson(_json["labels"]); |
| 5675 } |
| 5676 if (_json.containsKey("nodeColor")) { |
| 5677 nodeColor = new Color.fromJson(_json["nodeColor"]); |
| 5678 } |
| 5679 if (_json.containsKey("nodeSize")) { |
| 5680 nodeSize = _json["nodeSize"]; |
| 5681 } |
| 5682 if (_json.containsKey("parentLabels")) { |
| 5683 parentLabels = new ChartData.fromJson(_json["parentLabels"]); |
| 5684 } |
| 5685 if (_json.containsKey("selectedNodeColor")) { |
| 5686 selectedNodeColor = new Color.fromJson(_json["selectedNodeColor"]); |
| 5687 } |
| 5688 if (_json.containsKey("tooltips")) { |
| 5689 tooltips = new ChartData.fromJson(_json["tooltips"]); |
| 5690 } |
| 5691 } |
| 5692 |
| 5693 core.Map<core.String, core.Object> toJson() { |
| 5694 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 5695 if (labels != null) { |
| 5696 _json["labels"] = (labels).toJson(); |
| 5697 } |
| 5698 if (nodeColor != null) { |
| 5699 _json["nodeColor"] = (nodeColor).toJson(); |
| 5700 } |
| 5701 if (nodeSize != null) { |
| 5702 _json["nodeSize"] = nodeSize; |
| 5703 } |
| 5704 if (parentLabels != null) { |
| 5705 _json["parentLabels"] = (parentLabels).toJson(); |
| 5706 } |
| 5707 if (selectedNodeColor != null) { |
| 5708 _json["selectedNodeColor"] = (selectedNodeColor).toJson(); |
| 5709 } |
| 5710 if (tooltips != null) { |
| 5711 _json["tooltips"] = (tooltips).toJson(); |
| 5712 } |
| 5713 return _json; |
| 5714 } |
| 5715 } |
| 5716 |
5057 /** The location an object is overlaid on top of a grid. */ | 5717 /** The location an object is overlaid on top of a grid. */ |
5058 class OverlayPosition { | 5718 class OverlayPosition { |
5059 /** The cell the object is anchored to. */ | 5719 /** The cell the object is anchored to. */ |
5060 GridCoordinate anchorCell; | 5720 GridCoordinate anchorCell; |
5061 /** The height of the object, in pixels. Defaults to 371. */ | 5721 /** The height of the object, in pixels. Defaults to 371. */ |
5062 core.int heightPixels; | 5722 core.int heightPixels; |
5063 /** | 5723 /** |
5064 * The horizontal offset, in pixels, that the object is offset | 5724 * The horizontal offset, in pixels, that the object is offset |
5065 * from the anchor cell. | 5725 * from the anchor cell. |
5066 */ | 5726 */ |
(...skipping 19 matching lines...) Expand all Loading... |
5086 offsetXPixels = _json["offsetXPixels"]; | 5746 offsetXPixels = _json["offsetXPixels"]; |
5087 } | 5747 } |
5088 if (_json.containsKey("offsetYPixels")) { | 5748 if (_json.containsKey("offsetYPixels")) { |
5089 offsetYPixels = _json["offsetYPixels"]; | 5749 offsetYPixels = _json["offsetYPixels"]; |
5090 } | 5750 } |
5091 if (_json.containsKey("widthPixels")) { | 5751 if (_json.containsKey("widthPixels")) { |
5092 widthPixels = _json["widthPixels"]; | 5752 widthPixels = _json["widthPixels"]; |
5093 } | 5753 } |
5094 } | 5754 } |
5095 | 5755 |
5096 core.Map toJson() { | 5756 core.Map<core.String, core.Object> toJson() { |
5097 var _json = new core.Map(); | 5757 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
5098 if (anchorCell != null) { | 5758 if (anchorCell != null) { |
5099 _json["anchorCell"] = (anchorCell).toJson(); | 5759 _json["anchorCell"] = (anchorCell).toJson(); |
5100 } | 5760 } |
5101 if (heightPixels != null) { | 5761 if (heightPixels != null) { |
5102 _json["heightPixels"] = heightPixels; | 5762 _json["heightPixels"] = heightPixels; |
5103 } | 5763 } |
5104 if (offsetXPixels != null) { | 5764 if (offsetXPixels != null) { |
5105 _json["offsetXPixels"] = offsetXPixels; | 5765 _json["offsetXPixels"] = offsetXPixels; |
5106 } | 5766 } |
5107 if (offsetYPixels != null) { | 5767 if (offsetYPixels != null) { |
(...skipping 30 matching lines...) Expand all Loading... |
5138 left = _json["left"]; | 5798 left = _json["left"]; |
5139 } | 5799 } |
5140 if (_json.containsKey("right")) { | 5800 if (_json.containsKey("right")) { |
5141 right = _json["right"]; | 5801 right = _json["right"]; |
5142 } | 5802 } |
5143 if (_json.containsKey("top")) { | 5803 if (_json.containsKey("top")) { |
5144 top = _json["top"]; | 5804 top = _json["top"]; |
5145 } | 5805 } |
5146 } | 5806 } |
5147 | 5807 |
5148 core.Map toJson() { | 5808 core.Map<core.String, core.Object> toJson() { |
5149 var _json = new core.Map(); | 5809 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
5150 if (bottom != null) { | 5810 if (bottom != null) { |
5151 _json["bottom"] = bottom; | 5811 _json["bottom"] = bottom; |
5152 } | 5812 } |
5153 if (left != null) { | 5813 if (left != null) { |
5154 _json["left"] = left; | 5814 _json["left"] = left; |
5155 } | 5815 } |
5156 if (right != null) { | 5816 if (right != null) { |
5157 _json["right"] = right; | 5817 _json["right"] = right; |
5158 } | 5818 } |
5159 if (top != null) { | 5819 if (top != null) { |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5201 delimiter = _json["delimiter"]; | 5861 delimiter = _json["delimiter"]; |
5202 } | 5862 } |
5203 if (_json.containsKey("html")) { | 5863 if (_json.containsKey("html")) { |
5204 html = _json["html"]; | 5864 html = _json["html"]; |
5205 } | 5865 } |
5206 if (_json.containsKey("type")) { | 5866 if (_json.containsKey("type")) { |
5207 type = _json["type"]; | 5867 type = _json["type"]; |
5208 } | 5868 } |
5209 } | 5869 } |
5210 | 5870 |
5211 core.Map toJson() { | 5871 core.Map<core.String, core.Object> toJson() { |
5212 var _json = new core.Map(); | 5872 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
5213 if (coordinate != null) { | 5873 if (coordinate != null) { |
5214 _json["coordinate"] = (coordinate).toJson(); | 5874 _json["coordinate"] = (coordinate).toJson(); |
5215 } | 5875 } |
5216 if (data != null) { | 5876 if (data != null) { |
5217 _json["data"] = data; | 5877 _json["data"] = data; |
5218 } | 5878 } |
5219 if (delimiter != null) { | 5879 if (delimiter != null) { |
5220 _json["delimiter"] = delimiter; | 5880 _json["delimiter"] = delimiter; |
5221 } | 5881 } |
5222 if (html != null) { | 5882 if (html != null) { |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5265 pieHole = _json["pieHole"]; | 5925 pieHole = _json["pieHole"]; |
5266 } | 5926 } |
5267 if (_json.containsKey("series")) { | 5927 if (_json.containsKey("series")) { |
5268 series = new ChartData.fromJson(_json["series"]); | 5928 series = new ChartData.fromJson(_json["series"]); |
5269 } | 5929 } |
5270 if (_json.containsKey("threeDimensional")) { | 5930 if (_json.containsKey("threeDimensional")) { |
5271 threeDimensional = _json["threeDimensional"]; | 5931 threeDimensional = _json["threeDimensional"]; |
5272 } | 5932 } |
5273 } | 5933 } |
5274 | 5934 |
5275 core.Map toJson() { | 5935 core.Map<core.String, core.Object> toJson() { |
5276 var _json = new core.Map(); | 5936 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
5277 if (domain != null) { | 5937 if (domain != null) { |
5278 _json["domain"] = (domain).toJson(); | 5938 _json["domain"] = (domain).toJson(); |
5279 } | 5939 } |
5280 if (legendPosition != null) { | 5940 if (legendPosition != null) { |
5281 _json["legendPosition"] = legendPosition; | 5941 _json["legendPosition"] = legendPosition; |
5282 } | 5942 } |
5283 if (pieHole != null) { | 5943 if (pieHole != null) { |
5284 _json["pieHole"] = pieHole; | 5944 _json["pieHole"] = pieHole; |
5285 } | 5945 } |
5286 if (series != null) { | 5946 if (series != null) { |
(...skipping 12 matching lines...) Expand all Loading... |
5299 core.List<core.String> visibleValues; | 5959 core.List<core.String> visibleValues; |
5300 | 5960 |
5301 PivotFilterCriteria(); | 5961 PivotFilterCriteria(); |
5302 | 5962 |
5303 PivotFilterCriteria.fromJson(core.Map _json) { | 5963 PivotFilterCriteria.fromJson(core.Map _json) { |
5304 if (_json.containsKey("visibleValues")) { | 5964 if (_json.containsKey("visibleValues")) { |
5305 visibleValues = _json["visibleValues"]; | 5965 visibleValues = _json["visibleValues"]; |
5306 } | 5966 } |
5307 } | 5967 } |
5308 | 5968 |
5309 core.Map toJson() { | 5969 core.Map<core.String, core.Object> toJson() { |
5310 var _json = new core.Map(); | 5970 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
5311 if (visibleValues != null) { | 5971 if (visibleValues != null) { |
5312 _json["visibleValues"] = visibleValues; | 5972 _json["visibleValues"] = visibleValues; |
5313 } | 5973 } |
5314 return _json; | 5974 return _json; |
5315 } | 5975 } |
5316 } | 5976 } |
5317 | 5977 |
5318 /** A single grouping (either row or column) in a pivot table. */ | 5978 /** A single grouping (either row or column) in a pivot table. */ |
5319 class PivotGroup { | 5979 class PivotGroup { |
5320 /** True if the pivot table should include the totals for this grouping. */ | 5980 /** True if the pivot table should include the totals for this grouping. */ |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5356 sourceColumnOffset = _json["sourceColumnOffset"]; | 6016 sourceColumnOffset = _json["sourceColumnOffset"]; |
5357 } | 6017 } |
5358 if (_json.containsKey("valueBucket")) { | 6018 if (_json.containsKey("valueBucket")) { |
5359 valueBucket = new PivotGroupSortValueBucket.fromJson(_json["valueBucket"])
; | 6019 valueBucket = new PivotGroupSortValueBucket.fromJson(_json["valueBucket"])
; |
5360 } | 6020 } |
5361 if (_json.containsKey("valueMetadata")) { | 6021 if (_json.containsKey("valueMetadata")) { |
5362 valueMetadata = _json["valueMetadata"].map((value) => new PivotGroupValueM
etadata.fromJson(value)).toList(); | 6022 valueMetadata = _json["valueMetadata"].map((value) => new PivotGroupValueM
etadata.fromJson(value)).toList(); |
5363 } | 6023 } |
5364 } | 6024 } |
5365 | 6025 |
5366 core.Map toJson() { | 6026 core.Map<core.String, core.Object> toJson() { |
5367 var _json = new core.Map(); | 6027 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
5368 if (showTotals != null) { | 6028 if (showTotals != null) { |
5369 _json["showTotals"] = showTotals; | 6029 _json["showTotals"] = showTotals; |
5370 } | 6030 } |
5371 if (sortOrder != null) { | 6031 if (sortOrder != null) { |
5372 _json["sortOrder"] = sortOrder; | 6032 _json["sortOrder"] = sortOrder; |
5373 } | 6033 } |
5374 if (sourceColumnOffset != null) { | 6034 if (sourceColumnOffset != null) { |
5375 _json["sourceColumnOffset"] = sourceColumnOffset; | 6035 _json["sourceColumnOffset"] = sourceColumnOffset; |
5376 } | 6036 } |
5377 if (valueBucket != null) { | 6037 if (valueBucket != null) { |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5410 | 6070 |
5411 PivotGroupSortValueBucket.fromJson(core.Map _json) { | 6071 PivotGroupSortValueBucket.fromJson(core.Map _json) { |
5412 if (_json.containsKey("buckets")) { | 6072 if (_json.containsKey("buckets")) { |
5413 buckets = _json["buckets"].map((value) => new ExtendedValue.fromJson(value
)).toList(); | 6073 buckets = _json["buckets"].map((value) => new ExtendedValue.fromJson(value
)).toList(); |
5414 } | 6074 } |
5415 if (_json.containsKey("valuesIndex")) { | 6075 if (_json.containsKey("valuesIndex")) { |
5416 valuesIndex = _json["valuesIndex"]; | 6076 valuesIndex = _json["valuesIndex"]; |
5417 } | 6077 } |
5418 } | 6078 } |
5419 | 6079 |
5420 core.Map toJson() { | 6080 core.Map<core.String, core.Object> toJson() { |
5421 var _json = new core.Map(); | 6081 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
5422 if (buckets != null) { | 6082 if (buckets != null) { |
5423 _json["buckets"] = buckets.map((value) => (value).toJson()).toList(); | 6083 _json["buckets"] = buckets.map((value) => (value).toJson()).toList(); |
5424 } | 6084 } |
5425 if (valuesIndex != null) { | 6085 if (valuesIndex != null) { |
5426 _json["valuesIndex"] = valuesIndex; | 6086 _json["valuesIndex"] = valuesIndex; |
5427 } | 6087 } |
5428 return _json; | 6088 return _json; |
5429 } | 6089 } |
5430 } | 6090 } |
5431 | 6091 |
(...skipping 12 matching lines...) Expand all Loading... |
5444 | 6104 |
5445 PivotGroupValueMetadata.fromJson(core.Map _json) { | 6105 PivotGroupValueMetadata.fromJson(core.Map _json) { |
5446 if (_json.containsKey("collapsed")) { | 6106 if (_json.containsKey("collapsed")) { |
5447 collapsed = _json["collapsed"]; | 6107 collapsed = _json["collapsed"]; |
5448 } | 6108 } |
5449 if (_json.containsKey("value")) { | 6109 if (_json.containsKey("value")) { |
5450 value = new ExtendedValue.fromJson(_json["value"]); | 6110 value = new ExtendedValue.fromJson(_json["value"]); |
5451 } | 6111 } |
5452 } | 6112 } |
5453 | 6113 |
5454 core.Map toJson() { | 6114 core.Map<core.String, core.Object> toJson() { |
5455 var _json = new core.Map(); | 6115 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
5456 if (collapsed != null) { | 6116 if (collapsed != null) { |
5457 _json["collapsed"] = collapsed; | 6117 _json["collapsed"] = collapsed; |
5458 } | 6118 } |
5459 if (value != null) { | 6119 if (value != null) { |
5460 _json["value"] = (value).toJson(); | 6120 _json["value"] = (value).toJson(); |
5461 } | 6121 } |
5462 return _json; | 6122 return _json; |
5463 } | 6123 } |
5464 } | 6124 } |
5465 | 6125 |
(...skipping 27 matching lines...) Expand all Loading... |
5493 /** A list of values to include in the pivot table. */ | 6153 /** A list of values to include in the pivot table. */ |
5494 core.List<PivotValue> values; | 6154 core.List<PivotValue> values; |
5495 | 6155 |
5496 PivotTable(); | 6156 PivotTable(); |
5497 | 6157 |
5498 PivotTable.fromJson(core.Map _json) { | 6158 PivotTable.fromJson(core.Map _json) { |
5499 if (_json.containsKey("columns")) { | 6159 if (_json.containsKey("columns")) { |
5500 columns = _json["columns"].map((value) => new PivotGroup.fromJson(value)).
toList(); | 6160 columns = _json["columns"].map((value) => new PivotGroup.fromJson(value)).
toList(); |
5501 } | 6161 } |
5502 if (_json.containsKey("criteria")) { | 6162 if (_json.containsKey("criteria")) { |
5503 criteria = commons.mapMap(_json["criteria"], (item) => new PivotFilterCrit
eria.fromJson(item)); | 6163 criteria = commons.mapMap<core.Map<core.String, core.Object>, PivotFilterC
riteria>(_json["criteria"], (core.Map<core.String, core.Object> item) => new Piv
otFilterCriteria.fromJson(item)); |
5504 } | 6164 } |
5505 if (_json.containsKey("rows")) { | 6165 if (_json.containsKey("rows")) { |
5506 rows = _json["rows"].map((value) => new PivotGroup.fromJson(value)).toList
(); | 6166 rows = _json["rows"].map((value) => new PivotGroup.fromJson(value)).toList
(); |
5507 } | 6167 } |
5508 if (_json.containsKey("source")) { | 6168 if (_json.containsKey("source")) { |
5509 source = new GridRange.fromJson(_json["source"]); | 6169 source = new GridRange.fromJson(_json["source"]); |
5510 } | 6170 } |
5511 if (_json.containsKey("valueLayout")) { | 6171 if (_json.containsKey("valueLayout")) { |
5512 valueLayout = _json["valueLayout"]; | 6172 valueLayout = _json["valueLayout"]; |
5513 } | 6173 } |
5514 if (_json.containsKey("values")) { | 6174 if (_json.containsKey("values")) { |
5515 values = _json["values"].map((value) => new PivotValue.fromJson(value)).to
List(); | 6175 values = _json["values"].map((value) => new PivotValue.fromJson(value)).to
List(); |
5516 } | 6176 } |
5517 } | 6177 } |
5518 | 6178 |
5519 core.Map toJson() { | 6179 core.Map<core.String, core.Object> toJson() { |
5520 var _json = new core.Map(); | 6180 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
5521 if (columns != null) { | 6181 if (columns != null) { |
5522 _json["columns"] = columns.map((value) => (value).toJson()).toList(); | 6182 _json["columns"] = columns.map((value) => (value).toJson()).toList(); |
5523 } | 6183 } |
5524 if (criteria != null) { | 6184 if (criteria != null) { |
5525 _json["criteria"] = commons.mapMap(criteria, (item) => (item).toJson()); | 6185 _json["criteria"] = commons.mapMap<PivotFilterCriteria, core.Map<core.Stri
ng, core.Object>>(criteria, (PivotFilterCriteria item) => (item).toJson()); |
5526 } | 6186 } |
5527 if (rows != null) { | 6187 if (rows != null) { |
5528 _json["rows"] = rows.map((value) => (value).toJson()).toList(); | 6188 _json["rows"] = rows.map((value) => (value).toJson()).toList(); |
5529 } | 6189 } |
5530 if (source != null) { | 6190 if (source != null) { |
5531 _json["source"] = (source).toJson(); | 6191 _json["source"] = (source).toJson(); |
5532 } | 6192 } |
5533 if (valueLayout != null) { | 6193 if (valueLayout != null) { |
5534 _json["valueLayout"] = valueLayout; | 6194 _json["valueLayout"] = valueLayout; |
5535 } | 6195 } |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5597 name = _json["name"]; | 6257 name = _json["name"]; |
5598 } | 6258 } |
5599 if (_json.containsKey("sourceColumnOffset")) { | 6259 if (_json.containsKey("sourceColumnOffset")) { |
5600 sourceColumnOffset = _json["sourceColumnOffset"]; | 6260 sourceColumnOffset = _json["sourceColumnOffset"]; |
5601 } | 6261 } |
5602 if (_json.containsKey("summarizeFunction")) { | 6262 if (_json.containsKey("summarizeFunction")) { |
5603 summarizeFunction = _json["summarizeFunction"]; | 6263 summarizeFunction = _json["summarizeFunction"]; |
5604 } | 6264 } |
5605 } | 6265 } |
5606 | 6266 |
5607 core.Map toJson() { | 6267 core.Map<core.String, core.Object> toJson() { |
5608 var _json = new core.Map(); | 6268 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
5609 if (formula != null) { | 6269 if (formula != null) { |
5610 _json["formula"] = formula; | 6270 _json["formula"] = formula; |
5611 } | 6271 } |
5612 if (name != null) { | 6272 if (name != null) { |
5613 _json["name"] = name; | 6273 _json["name"] = name; |
5614 } | 6274 } |
5615 if (sourceColumnOffset != null) { | 6275 if (sourceColumnOffset != null) { |
5616 _json["sourceColumnOffset"] = sourceColumnOffset; | 6276 _json["sourceColumnOffset"] = sourceColumnOffset; |
5617 } | 6277 } |
5618 if (summarizeFunction != null) { | 6278 if (summarizeFunction != null) { |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5700 requestingUserCanEdit = _json["requestingUserCanEdit"]; | 6360 requestingUserCanEdit = _json["requestingUserCanEdit"]; |
5701 } | 6361 } |
5702 if (_json.containsKey("unprotectedRanges")) { | 6362 if (_json.containsKey("unprotectedRanges")) { |
5703 unprotectedRanges = _json["unprotectedRanges"].map((value) => new GridRang
e.fromJson(value)).toList(); | 6363 unprotectedRanges = _json["unprotectedRanges"].map((value) => new GridRang
e.fromJson(value)).toList(); |
5704 } | 6364 } |
5705 if (_json.containsKey("warningOnly")) { | 6365 if (_json.containsKey("warningOnly")) { |
5706 warningOnly = _json["warningOnly"]; | 6366 warningOnly = _json["warningOnly"]; |
5707 } | 6367 } |
5708 } | 6368 } |
5709 | 6369 |
5710 core.Map toJson() { | 6370 core.Map<core.String, core.Object> toJson() { |
5711 var _json = new core.Map(); | 6371 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
5712 if (description != null) { | 6372 if (description != null) { |
5713 _json["description"] = description; | 6373 _json["description"] = description; |
5714 } | 6374 } |
5715 if (editors != null) { | 6375 if (editors != null) { |
5716 _json["editors"] = (editors).toJson(); | 6376 _json["editors"] = (editors).toJson(); |
5717 } | 6377 } |
5718 if (namedRangeId != null) { | 6378 if (namedRangeId != null) { |
5719 _json["namedRangeId"] = namedRangeId; | 6379 _json["namedRangeId"] = namedRangeId; |
5720 } | 6380 } |
5721 if (protectedRangeId != null) { | 6381 if (protectedRangeId != null) { |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5771 cell = new CellData.fromJson(_json["cell"]); | 6431 cell = new CellData.fromJson(_json["cell"]); |
5772 } | 6432 } |
5773 if (_json.containsKey("fields")) { | 6433 if (_json.containsKey("fields")) { |
5774 fields = _json["fields"]; | 6434 fields = _json["fields"]; |
5775 } | 6435 } |
5776 if (_json.containsKey("range")) { | 6436 if (_json.containsKey("range")) { |
5777 range = new GridRange.fromJson(_json["range"]); | 6437 range = new GridRange.fromJson(_json["range"]); |
5778 } | 6438 } |
5779 } | 6439 } |
5780 | 6440 |
5781 core.Map toJson() { | 6441 core.Map<core.String, core.Object> toJson() { |
5782 var _json = new core.Map(); | 6442 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
5783 if (cell != null) { | 6443 if (cell != null) { |
5784 _json["cell"] = (cell).toJson(); | 6444 _json["cell"] = (cell).toJson(); |
5785 } | 6445 } |
5786 if (fields != null) { | 6446 if (fields != null) { |
5787 _json["fields"] = fields; | 6447 _json["fields"] = fields; |
5788 } | 6448 } |
5789 if (range != null) { | 6449 if (range != null) { |
5790 _json["range"] = (range).toJson(); | 6450 _json["range"] = (range).toJson(); |
5791 } | 6451 } |
5792 return _json; | 6452 return _json; |
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6042 updateProtectedRange = new UpdateProtectedRangeRequest.fromJson(_json["upd
ateProtectedRange"]); | 6702 updateProtectedRange = new UpdateProtectedRangeRequest.fromJson(_json["upd
ateProtectedRange"]); |
6043 } | 6703 } |
6044 if (_json.containsKey("updateSheetProperties")) { | 6704 if (_json.containsKey("updateSheetProperties")) { |
6045 updateSheetProperties = new UpdateSheetPropertiesRequest.fromJson(_json["u
pdateSheetProperties"]); | 6705 updateSheetProperties = new UpdateSheetPropertiesRequest.fromJson(_json["u
pdateSheetProperties"]); |
6046 } | 6706 } |
6047 if (_json.containsKey("updateSpreadsheetProperties")) { | 6707 if (_json.containsKey("updateSpreadsheetProperties")) { |
6048 updateSpreadsheetProperties = new UpdateSpreadsheetPropertiesRequest.fromJ
son(_json["updateSpreadsheetProperties"]); | 6708 updateSpreadsheetProperties = new UpdateSpreadsheetPropertiesRequest.fromJ
son(_json["updateSpreadsheetProperties"]); |
6049 } | 6709 } |
6050 } | 6710 } |
6051 | 6711 |
6052 core.Map toJson() { | 6712 core.Map<core.String, core.Object> toJson() { |
6053 var _json = new core.Map(); | 6713 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
6054 if (addBanding != null) { | 6714 if (addBanding != null) { |
6055 _json["addBanding"] = (addBanding).toJson(); | 6715 _json["addBanding"] = (addBanding).toJson(); |
6056 } | 6716 } |
6057 if (addChart != null) { | 6717 if (addChart != null) { |
6058 _json["addChart"] = (addChart).toJson(); | 6718 _json["addChart"] = (addChart).toJson(); |
6059 } | 6719 } |
6060 if (addConditionalFormatRule != null) { | 6720 if (addConditionalFormatRule != null) { |
6061 _json["addConditionalFormatRule"] = (addConditionalFormatRule).toJson(); | 6721 _json["addConditionalFormatRule"] = (addConditionalFormatRule).toJson(); |
6062 } | 6722 } |
6063 if (addFilterView != null) { | 6723 if (addFilterView != null) { |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6263 findReplace = new FindReplaceResponse.fromJson(_json["findReplace"]); | 6923 findReplace = new FindReplaceResponse.fromJson(_json["findReplace"]); |
6264 } | 6924 } |
6265 if (_json.containsKey("updateConditionalFormatRule")) { | 6925 if (_json.containsKey("updateConditionalFormatRule")) { |
6266 updateConditionalFormatRule = new UpdateConditionalFormatRuleResponse.from
Json(_json["updateConditionalFormatRule"]); | 6926 updateConditionalFormatRule = new UpdateConditionalFormatRuleResponse.from
Json(_json["updateConditionalFormatRule"]); |
6267 } | 6927 } |
6268 if (_json.containsKey("updateEmbeddedObjectPosition")) { | 6928 if (_json.containsKey("updateEmbeddedObjectPosition")) { |
6269 updateEmbeddedObjectPosition = new UpdateEmbeddedObjectPositionResponse.fr
omJson(_json["updateEmbeddedObjectPosition"]); | 6929 updateEmbeddedObjectPosition = new UpdateEmbeddedObjectPositionResponse.fr
omJson(_json["updateEmbeddedObjectPosition"]); |
6270 } | 6930 } |
6271 } | 6931 } |
6272 | 6932 |
6273 core.Map toJson() { | 6933 core.Map<core.String, core.Object> toJson() { |
6274 var _json = new core.Map(); | 6934 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
6275 if (addBanding != null) { | 6935 if (addBanding != null) { |
6276 _json["addBanding"] = (addBanding).toJson(); | 6936 _json["addBanding"] = (addBanding).toJson(); |
6277 } | 6937 } |
6278 if (addChart != null) { | 6938 if (addChart != null) { |
6279 _json["addChart"] = (addChart).toJson(); | 6939 _json["addChart"] = (addChart).toJson(); |
6280 } | 6940 } |
6281 if (addFilterView != null) { | 6941 if (addFilterView != null) { |
6282 _json["addFilterView"] = (addFilterView).toJson(); | 6942 _json["addFilterView"] = (addFilterView).toJson(); |
6283 } | 6943 } |
6284 if (addNamedRange != null) { | 6944 if (addNamedRange != null) { |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6318 core.List<CellData> values; | 6978 core.List<CellData> values; |
6319 | 6979 |
6320 RowData(); | 6980 RowData(); |
6321 | 6981 |
6322 RowData.fromJson(core.Map _json) { | 6982 RowData.fromJson(core.Map _json) { |
6323 if (_json.containsKey("values")) { | 6983 if (_json.containsKey("values")) { |
6324 values = _json["values"].map((value) => new CellData.fromJson(value)).toLi
st(); | 6984 values = _json["values"].map((value) => new CellData.fromJson(value)).toLi
st(); |
6325 } | 6985 } |
6326 } | 6986 } |
6327 | 6987 |
6328 core.Map toJson() { | 6988 core.Map<core.String, core.Object> toJson() { |
6329 var _json = new core.Map(); | 6989 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
6330 if (values != null) { | 6990 if (values != null) { |
6331 _json["values"] = values.map((value) => (value).toJson()).toList(); | 6991 _json["values"] = values.map((value) => (value).toJson()).toList(); |
6332 } | 6992 } |
6333 return _json; | 6993 return _json; |
6334 } | 6994 } |
6335 } | 6995 } |
6336 | 6996 |
6337 /** Sets the basic filter associated with a sheet. */ | 6997 /** Sets the basic filter associated with a sheet. */ |
6338 class SetBasicFilterRequest { | 6998 class SetBasicFilterRequest { |
6339 /** The filter to set. */ | 6999 /** The filter to set. */ |
6340 BasicFilter filter; | 7000 BasicFilter filter; |
6341 | 7001 |
6342 SetBasicFilterRequest(); | 7002 SetBasicFilterRequest(); |
6343 | 7003 |
6344 SetBasicFilterRequest.fromJson(core.Map _json) { | 7004 SetBasicFilterRequest.fromJson(core.Map _json) { |
6345 if (_json.containsKey("filter")) { | 7005 if (_json.containsKey("filter")) { |
6346 filter = new BasicFilter.fromJson(_json["filter"]); | 7006 filter = new BasicFilter.fromJson(_json["filter"]); |
6347 } | 7007 } |
6348 } | 7008 } |
6349 | 7009 |
6350 core.Map toJson() { | 7010 core.Map<core.String, core.Object> toJson() { |
6351 var _json = new core.Map(); | 7011 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
6352 if (filter != null) { | 7012 if (filter != null) { |
6353 _json["filter"] = (filter).toJson(); | 7013 _json["filter"] = (filter).toJson(); |
6354 } | 7014 } |
6355 return _json; | 7015 return _json; |
6356 } | 7016 } |
6357 } | 7017 } |
6358 | 7018 |
6359 /** | 7019 /** |
6360 * Sets a data validation rule to every cell in the range. | 7020 * Sets a data validation rule to every cell in the range. |
6361 * To clear validation in a range, call this with no rule specified. | 7021 * To clear validation in a range, call this with no rule specified. |
(...skipping 11 matching lines...) Expand all Loading... |
6373 | 7033 |
6374 SetDataValidationRequest.fromJson(core.Map _json) { | 7034 SetDataValidationRequest.fromJson(core.Map _json) { |
6375 if (_json.containsKey("range")) { | 7035 if (_json.containsKey("range")) { |
6376 range = new GridRange.fromJson(_json["range"]); | 7036 range = new GridRange.fromJson(_json["range"]); |
6377 } | 7037 } |
6378 if (_json.containsKey("rule")) { | 7038 if (_json.containsKey("rule")) { |
6379 rule = new DataValidationRule.fromJson(_json["rule"]); | 7039 rule = new DataValidationRule.fromJson(_json["rule"]); |
6380 } | 7040 } |
6381 } | 7041 } |
6382 | 7042 |
6383 core.Map toJson() { | 7043 core.Map<core.String, core.Object> toJson() { |
6384 var _json = new core.Map(); | 7044 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
6385 if (range != null) { | 7045 if (range != null) { |
6386 _json["range"] = (range).toJson(); | 7046 _json["range"] = (range).toJson(); |
6387 } | 7047 } |
6388 if (rule != null) { | 7048 if (rule != null) { |
6389 _json["rule"] = (rule).toJson(); | 7049 _json["rule"] = (rule).toJson(); |
6390 } | 7050 } |
6391 return _json; | 7051 return _json; |
6392 } | 7052 } |
6393 } | 7053 } |
6394 | 7054 |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6447 merges = _json["merges"].map((value) => new GridRange.fromJson(value)).toL
ist(); | 7107 merges = _json["merges"].map((value) => new GridRange.fromJson(value)).toL
ist(); |
6448 } | 7108 } |
6449 if (_json.containsKey("properties")) { | 7109 if (_json.containsKey("properties")) { |
6450 properties = new SheetProperties.fromJson(_json["properties"]); | 7110 properties = new SheetProperties.fromJson(_json["properties"]); |
6451 } | 7111 } |
6452 if (_json.containsKey("protectedRanges")) { | 7112 if (_json.containsKey("protectedRanges")) { |
6453 protectedRanges = _json["protectedRanges"].map((value) => new ProtectedRan
ge.fromJson(value)).toList(); | 7113 protectedRanges = _json["protectedRanges"].map((value) => new ProtectedRan
ge.fromJson(value)).toList(); |
6454 } | 7114 } |
6455 } | 7115 } |
6456 | 7116 |
6457 core.Map toJson() { | 7117 core.Map<core.String, core.Object> toJson() { |
6458 var _json = new core.Map(); | 7118 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
6459 if (bandedRanges != null) { | 7119 if (bandedRanges != null) { |
6460 _json["bandedRanges"] = bandedRanges.map((value) => (value).toJson()).toLi
st(); | 7120 _json["bandedRanges"] = bandedRanges.map((value) => (value).toJson()).toLi
st(); |
6461 } | 7121 } |
6462 if (basicFilter != null) { | 7122 if (basicFilter != null) { |
6463 _json["basicFilter"] = (basicFilter).toJson(); | 7123 _json["basicFilter"] = (basicFilter).toJson(); |
6464 } | 7124 } |
6465 if (charts != null) { | 7125 if (charts != null) { |
6466 _json["charts"] = charts.map((value) => (value).toJson()).toList(); | 7126 _json["charts"] = charts.map((value) => (value).toJson()).toList(); |
6467 } | 7127 } |
6468 if (conditionalFormats != null) { | 7128 if (conditionalFormats != null) { |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6555 sheetType = _json["sheetType"]; | 7215 sheetType = _json["sheetType"]; |
6556 } | 7216 } |
6557 if (_json.containsKey("tabColor")) { | 7217 if (_json.containsKey("tabColor")) { |
6558 tabColor = new Color.fromJson(_json["tabColor"]); | 7218 tabColor = new Color.fromJson(_json["tabColor"]); |
6559 } | 7219 } |
6560 if (_json.containsKey("title")) { | 7220 if (_json.containsKey("title")) { |
6561 title = _json["title"]; | 7221 title = _json["title"]; |
6562 } | 7222 } |
6563 } | 7223 } |
6564 | 7224 |
6565 core.Map toJson() { | 7225 core.Map<core.String, core.Object> toJson() { |
6566 var _json = new core.Map(); | 7226 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
6567 if (gridProperties != null) { | 7227 if (gridProperties != null) { |
6568 _json["gridProperties"] = (gridProperties).toJson(); | 7228 _json["gridProperties"] = (gridProperties).toJson(); |
6569 } | 7229 } |
6570 if (hidden != null) { | 7230 if (hidden != null) { |
6571 _json["hidden"] = hidden; | 7231 _json["hidden"] = hidden; |
6572 } | 7232 } |
6573 if (index != null) { | 7233 if (index != null) { |
6574 _json["index"] = index; | 7234 _json["index"] = index; |
6575 } | 7235 } |
6576 if (rightToLeft != null) { | 7236 if (rightToLeft != null) { |
(...skipping 29 matching lines...) Expand all Loading... |
6606 | 7266 |
6607 SortRangeRequest.fromJson(core.Map _json) { | 7267 SortRangeRequest.fromJson(core.Map _json) { |
6608 if (_json.containsKey("range")) { | 7268 if (_json.containsKey("range")) { |
6609 range = new GridRange.fromJson(_json["range"]); | 7269 range = new GridRange.fromJson(_json["range"]); |
6610 } | 7270 } |
6611 if (_json.containsKey("sortSpecs")) { | 7271 if (_json.containsKey("sortSpecs")) { |
6612 sortSpecs = _json["sortSpecs"].map((value) => new SortSpec.fromJson(value)
).toList(); | 7272 sortSpecs = _json["sortSpecs"].map((value) => new SortSpec.fromJson(value)
).toList(); |
6613 } | 7273 } |
6614 } | 7274 } |
6615 | 7275 |
6616 core.Map toJson() { | 7276 core.Map<core.String, core.Object> toJson() { |
6617 var _json = new core.Map(); | 7277 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
6618 if (range != null) { | 7278 if (range != null) { |
6619 _json["range"] = (range).toJson(); | 7279 _json["range"] = (range).toJson(); |
6620 } | 7280 } |
6621 if (sortSpecs != null) { | 7281 if (sortSpecs != null) { |
6622 _json["sortSpecs"] = sortSpecs.map((value) => (value).toJson()).toList(); | 7282 _json["sortSpecs"] = sortSpecs.map((value) => (value).toJson()).toList(); |
6623 } | 7283 } |
6624 return _json; | 7284 return _json; |
6625 } | 7285 } |
6626 } | 7286 } |
6627 | 7287 |
(...skipping 14 matching lines...) Expand all Loading... |
6642 | 7302 |
6643 SortSpec.fromJson(core.Map _json) { | 7303 SortSpec.fromJson(core.Map _json) { |
6644 if (_json.containsKey("dimensionIndex")) { | 7304 if (_json.containsKey("dimensionIndex")) { |
6645 dimensionIndex = _json["dimensionIndex"]; | 7305 dimensionIndex = _json["dimensionIndex"]; |
6646 } | 7306 } |
6647 if (_json.containsKey("sortOrder")) { | 7307 if (_json.containsKey("sortOrder")) { |
6648 sortOrder = _json["sortOrder"]; | 7308 sortOrder = _json["sortOrder"]; |
6649 } | 7309 } |
6650 } | 7310 } |
6651 | 7311 |
6652 core.Map toJson() { | 7312 core.Map<core.String, core.Object> toJson() { |
6653 var _json = new core.Map(); | 7313 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
6654 if (dimensionIndex != null) { | 7314 if (dimensionIndex != null) { |
6655 _json["dimensionIndex"] = dimensionIndex; | 7315 _json["dimensionIndex"] = dimensionIndex; |
6656 } | 7316 } |
6657 if (sortOrder != null) { | 7317 if (sortOrder != null) { |
6658 _json["sortOrder"] = sortOrder; | 7318 _json["sortOrder"] = sortOrder; |
6659 } | 7319 } |
6660 return _json; | 7320 return _json; |
6661 } | 7321 } |
6662 } | 7322 } |
6663 | 7323 |
(...skipping 24 matching lines...) Expand all Loading... |
6688 dimension = _json["dimension"]; | 7348 dimension = _json["dimension"]; |
6689 } | 7349 } |
6690 if (_json.containsKey("fillLength")) { | 7350 if (_json.containsKey("fillLength")) { |
6691 fillLength = _json["fillLength"]; | 7351 fillLength = _json["fillLength"]; |
6692 } | 7352 } |
6693 if (_json.containsKey("source")) { | 7353 if (_json.containsKey("source")) { |
6694 source = new GridRange.fromJson(_json["source"]); | 7354 source = new GridRange.fromJson(_json["source"]); |
6695 } | 7355 } |
6696 } | 7356 } |
6697 | 7357 |
6698 core.Map toJson() { | 7358 core.Map<core.String, core.Object> toJson() { |
6699 var _json = new core.Map(); | 7359 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
6700 if (dimension != null) { | 7360 if (dimension != null) { |
6701 _json["dimension"] = dimension; | 7361 _json["dimension"] = dimension; |
6702 } | 7362 } |
6703 if (fillLength != null) { | 7363 if (fillLength != null) { |
6704 _json["fillLength"] = fillLength; | 7364 _json["fillLength"] = fillLength; |
6705 } | 7365 } |
6706 if (source != null) { | 7366 if (source != null) { |
6707 _json["source"] = (source).toJson(); | 7367 _json["source"] = (source).toJson(); |
6708 } | 7368 } |
6709 return _json; | 7369 return _json; |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6742 sheets = _json["sheets"].map((value) => new Sheet.fromJson(value)).toList(
); | 7402 sheets = _json["sheets"].map((value) => new Sheet.fromJson(value)).toList(
); |
6743 } | 7403 } |
6744 if (_json.containsKey("spreadsheetId")) { | 7404 if (_json.containsKey("spreadsheetId")) { |
6745 spreadsheetId = _json["spreadsheetId"]; | 7405 spreadsheetId = _json["spreadsheetId"]; |
6746 } | 7406 } |
6747 if (_json.containsKey("spreadsheetUrl")) { | 7407 if (_json.containsKey("spreadsheetUrl")) { |
6748 spreadsheetUrl = _json["spreadsheetUrl"]; | 7408 spreadsheetUrl = _json["spreadsheetUrl"]; |
6749 } | 7409 } |
6750 } | 7410 } |
6751 | 7411 |
6752 core.Map toJson() { | 7412 core.Map<core.String, core.Object> toJson() { |
6753 var _json = new core.Map(); | 7413 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
6754 if (namedRanges != null) { | 7414 if (namedRanges != null) { |
6755 _json["namedRanges"] = namedRanges.map((value) => (value).toJson()).toList
(); | 7415 _json["namedRanges"] = namedRanges.map((value) => (value).toJson()).toList
(); |
6756 } | 7416 } |
6757 if (properties != null) { | 7417 if (properties != null) { |
6758 _json["properties"] = (properties).toJson(); | 7418 _json["properties"] = (properties).toJson(); |
6759 } | 7419 } |
6760 if (sheets != null) { | 7420 if (sheets != null) { |
6761 _json["sheets"] = sheets.map((value) => (value).toJson()).toList(); | 7421 _json["sheets"] = sheets.map((value) => (value).toJson()).toList(); |
6762 } | 7422 } |
6763 if (spreadsheetId != null) { | 7423 if (spreadsheetId != null) { |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6833 locale = _json["locale"]; | 7493 locale = _json["locale"]; |
6834 } | 7494 } |
6835 if (_json.containsKey("timeZone")) { | 7495 if (_json.containsKey("timeZone")) { |
6836 timeZone = _json["timeZone"]; | 7496 timeZone = _json["timeZone"]; |
6837 } | 7497 } |
6838 if (_json.containsKey("title")) { | 7498 if (_json.containsKey("title")) { |
6839 title = _json["title"]; | 7499 title = _json["title"]; |
6840 } | 7500 } |
6841 } | 7501 } |
6842 | 7502 |
6843 core.Map toJson() { | 7503 core.Map<core.String, core.Object> toJson() { |
6844 var _json = new core.Map(); | 7504 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
6845 if (autoRecalc != null) { | 7505 if (autoRecalc != null) { |
6846 _json["autoRecalc"] = autoRecalc; | 7506 _json["autoRecalc"] = autoRecalc; |
6847 } | 7507 } |
6848 if (defaultFormat != null) { | 7508 if (defaultFormat != null) { |
6849 _json["defaultFormat"] = (defaultFormat).toJson(); | 7509 _json["defaultFormat"] = (defaultFormat).toJson(); |
6850 } | 7510 } |
6851 if (iterativeCalculationSettings != null) { | 7511 if (iterativeCalculationSettings != null) { |
6852 _json["iterativeCalculationSettings"] = (iterativeCalculationSettings).toJ
son(); | 7512 _json["iterativeCalculationSettings"] = (iterativeCalculationSettings).toJ
son(); |
6853 } | 7513 } |
6854 if (locale != null) { | 7514 if (locale != null) { |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6903 italic = _json["italic"]; | 7563 italic = _json["italic"]; |
6904 } | 7564 } |
6905 if (_json.containsKey("strikethrough")) { | 7565 if (_json.containsKey("strikethrough")) { |
6906 strikethrough = _json["strikethrough"]; | 7566 strikethrough = _json["strikethrough"]; |
6907 } | 7567 } |
6908 if (_json.containsKey("underline")) { | 7568 if (_json.containsKey("underline")) { |
6909 underline = _json["underline"]; | 7569 underline = _json["underline"]; |
6910 } | 7570 } |
6911 } | 7571 } |
6912 | 7572 |
6913 core.Map toJson() { | 7573 core.Map<core.String, core.Object> toJson() { |
6914 var _json = new core.Map(); | 7574 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
6915 if (bold != null) { | 7575 if (bold != null) { |
6916 _json["bold"] = bold; | 7576 _json["bold"] = bold; |
6917 } | 7577 } |
6918 if (fontFamily != null) { | 7578 if (fontFamily != null) { |
6919 _json["fontFamily"] = fontFamily; | 7579 _json["fontFamily"] = fontFamily; |
6920 } | 7580 } |
6921 if (fontSize != null) { | 7581 if (fontSize != null) { |
6922 _json["fontSize"] = fontSize; | 7582 _json["fontSize"] = fontSize; |
6923 } | 7583 } |
6924 if (foregroundColor != null) { | 7584 if (foregroundColor != null) { |
(...skipping 27 matching lines...) Expand all Loading... |
6952 | 7612 |
6953 TextFormatRun.fromJson(core.Map _json) { | 7613 TextFormatRun.fromJson(core.Map _json) { |
6954 if (_json.containsKey("format")) { | 7614 if (_json.containsKey("format")) { |
6955 format = new TextFormat.fromJson(_json["format"]); | 7615 format = new TextFormat.fromJson(_json["format"]); |
6956 } | 7616 } |
6957 if (_json.containsKey("startIndex")) { | 7617 if (_json.containsKey("startIndex")) { |
6958 startIndex = _json["startIndex"]; | 7618 startIndex = _json["startIndex"]; |
6959 } | 7619 } |
6960 } | 7620 } |
6961 | 7621 |
6962 core.Map toJson() { | 7622 core.Map<core.String, core.Object> toJson() { |
6963 var _json = new core.Map(); | 7623 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
6964 if (format != null) { | 7624 if (format != null) { |
6965 _json["format"] = (format).toJson(); | 7625 _json["format"] = (format).toJson(); |
6966 } | 7626 } |
6967 if (startIndex != null) { | 7627 if (startIndex != null) { |
6968 _json["startIndex"] = startIndex; | 7628 _json["startIndex"] = startIndex; |
6969 } | 7629 } |
6970 return _json; | 7630 return _json; |
6971 } | 7631 } |
6972 } | 7632 } |
6973 | 7633 |
(...skipping 28 matching lines...) Expand all Loading... |
7002 | 7662 |
7003 TextRotation.fromJson(core.Map _json) { | 7663 TextRotation.fromJson(core.Map _json) { |
7004 if (_json.containsKey("angle")) { | 7664 if (_json.containsKey("angle")) { |
7005 angle = _json["angle"]; | 7665 angle = _json["angle"]; |
7006 } | 7666 } |
7007 if (_json.containsKey("vertical")) { | 7667 if (_json.containsKey("vertical")) { |
7008 vertical = _json["vertical"]; | 7668 vertical = _json["vertical"]; |
7009 } | 7669 } |
7010 } | 7670 } |
7011 | 7671 |
7012 core.Map toJson() { | 7672 core.Map<core.String, core.Object> toJson() { |
7013 var _json = new core.Map(); | 7673 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
7014 if (angle != null) { | 7674 if (angle != null) { |
7015 _json["angle"] = angle; | 7675 _json["angle"] = angle; |
7016 } | 7676 } |
7017 if (vertical != null) { | 7677 if (vertical != null) { |
7018 _json["vertical"] = vertical; | 7678 _json["vertical"] = vertical; |
7019 } | 7679 } |
7020 return _json; | 7680 return _json; |
7021 } | 7681 } |
7022 } | 7682 } |
7023 | 7683 |
(...skipping 29 matching lines...) Expand all Loading... |
7053 delimiter = _json["delimiter"]; | 7713 delimiter = _json["delimiter"]; |
7054 } | 7714 } |
7055 if (_json.containsKey("delimiterType")) { | 7715 if (_json.containsKey("delimiterType")) { |
7056 delimiterType = _json["delimiterType"]; | 7716 delimiterType = _json["delimiterType"]; |
7057 } | 7717 } |
7058 if (_json.containsKey("source")) { | 7718 if (_json.containsKey("source")) { |
7059 source = new GridRange.fromJson(_json["source"]); | 7719 source = new GridRange.fromJson(_json["source"]); |
7060 } | 7720 } |
7061 } | 7721 } |
7062 | 7722 |
7063 core.Map toJson() { | 7723 core.Map<core.String, core.Object> toJson() { |
7064 var _json = new core.Map(); | 7724 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
7065 if (delimiter != null) { | 7725 if (delimiter != null) { |
7066 _json["delimiter"] = delimiter; | 7726 _json["delimiter"] = delimiter; |
7067 } | 7727 } |
7068 if (delimiterType != null) { | 7728 if (delimiterType != null) { |
7069 _json["delimiterType"] = delimiterType; | 7729 _json["delimiterType"] = delimiterType; |
7070 } | 7730 } |
7071 if (source != null) { | 7731 if (source != null) { |
7072 _json["source"] = (source).toJson(); | 7732 _json["source"] = (source).toJson(); |
7073 } | 7733 } |
7074 return _json; | 7734 return _json; |
(...skipping 10 matching lines...) Expand all Loading... |
7085 GridRange range; | 7745 GridRange range; |
7086 | 7746 |
7087 UnmergeCellsRequest(); | 7747 UnmergeCellsRequest(); |
7088 | 7748 |
7089 UnmergeCellsRequest.fromJson(core.Map _json) { | 7749 UnmergeCellsRequest.fromJson(core.Map _json) { |
7090 if (_json.containsKey("range")) { | 7750 if (_json.containsKey("range")) { |
7091 range = new GridRange.fromJson(_json["range"]); | 7751 range = new GridRange.fromJson(_json["range"]); |
7092 } | 7752 } |
7093 } | 7753 } |
7094 | 7754 |
7095 core.Map toJson() { | 7755 core.Map<core.String, core.Object> toJson() { |
7096 var _json = new core.Map(); | 7756 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
7097 if (range != null) { | 7757 if (range != null) { |
7098 _json["range"] = (range).toJson(); | 7758 _json["range"] = (range).toJson(); |
7099 } | 7759 } |
7100 return _json; | 7760 return _json; |
7101 } | 7761 } |
7102 } | 7762 } |
7103 | 7763 |
7104 /** Updates properties of the supplied banded range. */ | 7764 /** Updates properties of the supplied banded range. */ |
7105 class UpdateBandingRequest { | 7765 class UpdateBandingRequest { |
7106 /** The banded range to update with the new properties. */ | 7766 /** The banded range to update with the new properties. */ |
7107 BandedRange bandedRange; | 7767 BandedRange bandedRange; |
7108 /** | 7768 /** |
7109 * The fields that should be updated. At least one field must be specified. | 7769 * The fields that should be updated. At least one field must be specified. |
7110 * The root `bandedRange` is implied and should not be specified. | 7770 * The root `bandedRange` is implied and should not be specified. |
7111 * A single `"*"` can be used as short-hand for listing every field. | 7771 * A single `"*"` can be used as short-hand for listing every field. |
7112 */ | 7772 */ |
7113 core.String fields; | 7773 core.String fields; |
7114 | 7774 |
7115 UpdateBandingRequest(); | 7775 UpdateBandingRequest(); |
7116 | 7776 |
7117 UpdateBandingRequest.fromJson(core.Map _json) { | 7777 UpdateBandingRequest.fromJson(core.Map _json) { |
7118 if (_json.containsKey("bandedRange")) { | 7778 if (_json.containsKey("bandedRange")) { |
7119 bandedRange = new BandedRange.fromJson(_json["bandedRange"]); | 7779 bandedRange = new BandedRange.fromJson(_json["bandedRange"]); |
7120 } | 7780 } |
7121 if (_json.containsKey("fields")) { | 7781 if (_json.containsKey("fields")) { |
7122 fields = _json["fields"]; | 7782 fields = _json["fields"]; |
7123 } | 7783 } |
7124 } | 7784 } |
7125 | 7785 |
7126 core.Map toJson() { | 7786 core.Map<core.String, core.Object> toJson() { |
7127 var _json = new core.Map(); | 7787 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
7128 if (bandedRange != null) { | 7788 if (bandedRange != null) { |
7129 _json["bandedRange"] = (bandedRange).toJson(); | 7789 _json["bandedRange"] = (bandedRange).toJson(); |
7130 } | 7790 } |
7131 if (fields != null) { | 7791 if (fields != null) { |
7132 _json["fields"] = fields; | 7792 _json["fields"] = fields; |
7133 } | 7793 } |
7134 return _json; | 7794 return _json; |
7135 } | 7795 } |
7136 } | 7796 } |
7137 | 7797 |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7183 range = new GridRange.fromJson(_json["range"]); | 7843 range = new GridRange.fromJson(_json["range"]); |
7184 } | 7844 } |
7185 if (_json.containsKey("right")) { | 7845 if (_json.containsKey("right")) { |
7186 right = new Border.fromJson(_json["right"]); | 7846 right = new Border.fromJson(_json["right"]); |
7187 } | 7847 } |
7188 if (_json.containsKey("top")) { | 7848 if (_json.containsKey("top")) { |
7189 top = new Border.fromJson(_json["top"]); | 7849 top = new Border.fromJson(_json["top"]); |
7190 } | 7850 } |
7191 } | 7851 } |
7192 | 7852 |
7193 core.Map toJson() { | 7853 core.Map<core.String, core.Object> toJson() { |
7194 var _json = new core.Map(); | 7854 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
7195 if (bottom != null) { | 7855 if (bottom != null) { |
7196 _json["bottom"] = (bottom).toJson(); | 7856 _json["bottom"] = (bottom).toJson(); |
7197 } | 7857 } |
7198 if (innerHorizontal != null) { | 7858 if (innerHorizontal != null) { |
7199 _json["innerHorizontal"] = (innerHorizontal).toJson(); | 7859 _json["innerHorizontal"] = (innerHorizontal).toJson(); |
7200 } | 7860 } |
7201 if (innerVertical != null) { | 7861 if (innerVertical != null) { |
7202 _json["innerVertical"] = (innerVertical).toJson(); | 7862 _json["innerVertical"] = (innerVertical).toJson(); |
7203 } | 7863 } |
7204 if (left != null) { | 7864 if (left != null) { |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7252 range = new GridRange.fromJson(_json["range"]); | 7912 range = new GridRange.fromJson(_json["range"]); |
7253 } | 7913 } |
7254 if (_json.containsKey("rows")) { | 7914 if (_json.containsKey("rows")) { |
7255 rows = _json["rows"].map((value) => new RowData.fromJson(value)).toList(); | 7915 rows = _json["rows"].map((value) => new RowData.fromJson(value)).toList(); |
7256 } | 7916 } |
7257 if (_json.containsKey("start")) { | 7917 if (_json.containsKey("start")) { |
7258 start = new GridCoordinate.fromJson(_json["start"]); | 7918 start = new GridCoordinate.fromJson(_json["start"]); |
7259 } | 7919 } |
7260 } | 7920 } |
7261 | 7921 |
7262 core.Map toJson() { | 7922 core.Map<core.String, core.Object> toJson() { |
7263 var _json = new core.Map(); | 7923 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
7264 if (fields != null) { | 7924 if (fields != null) { |
7265 _json["fields"] = fields; | 7925 _json["fields"] = fields; |
7266 } | 7926 } |
7267 if (range != null) { | 7927 if (range != null) { |
7268 _json["range"] = (range).toJson(); | 7928 _json["range"] = (range).toJson(); |
7269 } | 7929 } |
7270 if (rows != null) { | 7930 if (rows != null) { |
7271 _json["rows"] = rows.map((value) => (value).toJson()).toList(); | 7931 _json["rows"] = rows.map((value) => (value).toJson()).toList(); |
7272 } | 7932 } |
7273 if (start != null) { | 7933 if (start != null) { |
(...skipping 18 matching lines...) Expand all Loading... |
7292 | 7952 |
7293 UpdateChartSpecRequest.fromJson(core.Map _json) { | 7953 UpdateChartSpecRequest.fromJson(core.Map _json) { |
7294 if (_json.containsKey("chartId")) { | 7954 if (_json.containsKey("chartId")) { |
7295 chartId = _json["chartId"]; | 7955 chartId = _json["chartId"]; |
7296 } | 7956 } |
7297 if (_json.containsKey("spec")) { | 7957 if (_json.containsKey("spec")) { |
7298 spec = new ChartSpec.fromJson(_json["spec"]); | 7958 spec = new ChartSpec.fromJson(_json["spec"]); |
7299 } | 7959 } |
7300 } | 7960 } |
7301 | 7961 |
7302 core.Map toJson() { | 7962 core.Map<core.String, core.Object> toJson() { |
7303 var _json = new core.Map(); | 7963 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
7304 if (chartId != null) { | 7964 if (chartId != null) { |
7305 _json["chartId"] = chartId; | 7965 _json["chartId"] = chartId; |
7306 } | 7966 } |
7307 if (spec != null) { | 7967 if (spec != null) { |
7308 _json["spec"] = (spec).toJson(); | 7968 _json["spec"] = (spec).toJson(); |
7309 } | 7969 } |
7310 return _json; | 7970 return _json; |
7311 } | 7971 } |
7312 } | 7972 } |
7313 | 7973 |
(...skipping 24 matching lines...) Expand all Loading... |
7338 newIndex = _json["newIndex"]; | 7998 newIndex = _json["newIndex"]; |
7339 } | 7999 } |
7340 if (_json.containsKey("rule")) { | 8000 if (_json.containsKey("rule")) { |
7341 rule = new ConditionalFormatRule.fromJson(_json["rule"]); | 8001 rule = new ConditionalFormatRule.fromJson(_json["rule"]); |
7342 } | 8002 } |
7343 if (_json.containsKey("sheetId")) { | 8003 if (_json.containsKey("sheetId")) { |
7344 sheetId = _json["sheetId"]; | 8004 sheetId = _json["sheetId"]; |
7345 } | 8005 } |
7346 } | 8006 } |
7347 | 8007 |
7348 core.Map toJson() { | 8008 core.Map<core.String, core.Object> toJson() { |
7349 var _json = new core.Map(); | 8009 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
7350 if (index != null) { | 8010 if (index != null) { |
7351 _json["index"] = index; | 8011 _json["index"] = index; |
7352 } | 8012 } |
7353 if (newIndex != null) { | 8013 if (newIndex != null) { |
7354 _json["newIndex"] = newIndex; | 8014 _json["newIndex"] = newIndex; |
7355 } | 8015 } |
7356 if (rule != null) { | 8016 if (rule != null) { |
7357 _json["rule"] = (rule).toJson(); | 8017 _json["rule"] = (rule).toJson(); |
7358 } | 8018 } |
7359 if (sheetId != null) { | 8019 if (sheetId != null) { |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7393 newRule = new ConditionalFormatRule.fromJson(_json["newRule"]); | 8053 newRule = new ConditionalFormatRule.fromJson(_json["newRule"]); |
7394 } | 8054 } |
7395 if (_json.containsKey("oldIndex")) { | 8055 if (_json.containsKey("oldIndex")) { |
7396 oldIndex = _json["oldIndex"]; | 8056 oldIndex = _json["oldIndex"]; |
7397 } | 8057 } |
7398 if (_json.containsKey("oldRule")) { | 8058 if (_json.containsKey("oldRule")) { |
7399 oldRule = new ConditionalFormatRule.fromJson(_json["oldRule"]); | 8059 oldRule = new ConditionalFormatRule.fromJson(_json["oldRule"]); |
7400 } | 8060 } |
7401 } | 8061 } |
7402 | 8062 |
7403 core.Map toJson() { | 8063 core.Map<core.String, core.Object> toJson() { |
7404 var _json = new core.Map(); | 8064 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
7405 if (newIndex != null) { | 8065 if (newIndex != null) { |
7406 _json["newIndex"] = newIndex; | 8066 _json["newIndex"] = newIndex; |
7407 } | 8067 } |
7408 if (newRule != null) { | 8068 if (newRule != null) { |
7409 _json["newRule"] = (newRule).toJson(); | 8069 _json["newRule"] = (newRule).toJson(); |
7410 } | 8070 } |
7411 if (oldIndex != null) { | 8071 if (oldIndex != null) { |
7412 _json["oldIndex"] = oldIndex; | 8072 _json["oldIndex"] = oldIndex; |
7413 } | 8073 } |
7414 if (oldRule != null) { | 8074 if (oldRule != null) { |
(...skipping 23 matching lines...) Expand all Loading... |
7438 fields = _json["fields"]; | 8098 fields = _json["fields"]; |
7439 } | 8099 } |
7440 if (_json.containsKey("properties")) { | 8100 if (_json.containsKey("properties")) { |
7441 properties = new DimensionProperties.fromJson(_json["properties"]); | 8101 properties = new DimensionProperties.fromJson(_json["properties"]); |
7442 } | 8102 } |
7443 if (_json.containsKey("range")) { | 8103 if (_json.containsKey("range")) { |
7444 range = new DimensionRange.fromJson(_json["range"]); | 8104 range = new DimensionRange.fromJson(_json["range"]); |
7445 } | 8105 } |
7446 } | 8106 } |
7447 | 8107 |
7448 core.Map toJson() { | 8108 core.Map<core.String, core.Object> toJson() { |
7449 var _json = new core.Map(); | 8109 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
7450 if (fields != null) { | 8110 if (fields != null) { |
7451 _json["fields"] = fields; | 8111 _json["fields"] = fields; |
7452 } | 8112 } |
7453 if (properties != null) { | 8113 if (properties != null) { |
7454 _json["properties"] = (properties).toJson(); | 8114 _json["properties"] = (properties).toJson(); |
7455 } | 8115 } |
7456 if (range != null) { | 8116 if (range != null) { |
7457 _json["range"] = (range).toJson(); | 8117 _json["range"] = (range).toJson(); |
7458 } | 8118 } |
7459 return _json; | 8119 return _json; |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7493 fields = _json["fields"]; | 8153 fields = _json["fields"]; |
7494 } | 8154 } |
7495 if (_json.containsKey("newPosition")) { | 8155 if (_json.containsKey("newPosition")) { |
7496 newPosition = new EmbeddedObjectPosition.fromJson(_json["newPosition"]); | 8156 newPosition = new EmbeddedObjectPosition.fromJson(_json["newPosition"]); |
7497 } | 8157 } |
7498 if (_json.containsKey("objectId")) { | 8158 if (_json.containsKey("objectId")) { |
7499 objectId = _json["objectId"]; | 8159 objectId = _json["objectId"]; |
7500 } | 8160 } |
7501 } | 8161 } |
7502 | 8162 |
7503 core.Map toJson() { | 8163 core.Map<core.String, core.Object> toJson() { |
7504 var _json = new core.Map(); | 8164 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
7505 if (fields != null) { | 8165 if (fields != null) { |
7506 _json["fields"] = fields; | 8166 _json["fields"] = fields; |
7507 } | 8167 } |
7508 if (newPosition != null) { | 8168 if (newPosition != null) { |
7509 _json["newPosition"] = (newPosition).toJson(); | 8169 _json["newPosition"] = (newPosition).toJson(); |
7510 } | 8170 } |
7511 if (objectId != null) { | 8171 if (objectId != null) { |
7512 _json["objectId"] = objectId; | 8172 _json["objectId"] = objectId; |
7513 } | 8173 } |
7514 return _json; | 8174 return _json; |
7515 } | 8175 } |
7516 } | 8176 } |
7517 | 8177 |
7518 /** The result of updating an embedded object's position. */ | 8178 /** The result of updating an embedded object's position. */ |
7519 class UpdateEmbeddedObjectPositionResponse { | 8179 class UpdateEmbeddedObjectPositionResponse { |
7520 /** The new position of the embedded object. */ | 8180 /** The new position of the embedded object. */ |
7521 EmbeddedObjectPosition position; | 8181 EmbeddedObjectPosition position; |
7522 | 8182 |
7523 UpdateEmbeddedObjectPositionResponse(); | 8183 UpdateEmbeddedObjectPositionResponse(); |
7524 | 8184 |
7525 UpdateEmbeddedObjectPositionResponse.fromJson(core.Map _json) { | 8185 UpdateEmbeddedObjectPositionResponse.fromJson(core.Map _json) { |
7526 if (_json.containsKey("position")) { | 8186 if (_json.containsKey("position")) { |
7527 position = new EmbeddedObjectPosition.fromJson(_json["position"]); | 8187 position = new EmbeddedObjectPosition.fromJson(_json["position"]); |
7528 } | 8188 } |
7529 } | 8189 } |
7530 | 8190 |
7531 core.Map toJson() { | 8191 core.Map<core.String, core.Object> toJson() { |
7532 var _json = new core.Map(); | 8192 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
7533 if (position != null) { | 8193 if (position != null) { |
7534 _json["position"] = (position).toJson(); | 8194 _json["position"] = (position).toJson(); |
7535 } | 8195 } |
7536 return _json; | 8196 return _json; |
7537 } | 8197 } |
7538 } | 8198 } |
7539 | 8199 |
7540 /** Updates properties of the filter view. */ | 8200 /** Updates properties of the filter view. */ |
7541 class UpdateFilterViewRequest { | 8201 class UpdateFilterViewRequest { |
7542 /** | 8202 /** |
7543 * The fields that should be updated. At least one field must be specified. | 8203 * The fields that should be updated. At least one field must be specified. |
7544 * The root `filter` is implied and should not be specified. | 8204 * The root `filter` is implied and should not be specified. |
7545 * A single `"*"` can be used as short-hand for listing every field. | 8205 * A single `"*"` can be used as short-hand for listing every field. |
7546 */ | 8206 */ |
7547 core.String fields; | 8207 core.String fields; |
7548 /** The new properties of the filter view. */ | 8208 /** The new properties of the filter view. */ |
7549 FilterView filter; | 8209 FilterView filter; |
7550 | 8210 |
7551 UpdateFilterViewRequest(); | 8211 UpdateFilterViewRequest(); |
7552 | 8212 |
7553 UpdateFilterViewRequest.fromJson(core.Map _json) { | 8213 UpdateFilterViewRequest.fromJson(core.Map _json) { |
7554 if (_json.containsKey("fields")) { | 8214 if (_json.containsKey("fields")) { |
7555 fields = _json["fields"]; | 8215 fields = _json["fields"]; |
7556 } | 8216 } |
7557 if (_json.containsKey("filter")) { | 8217 if (_json.containsKey("filter")) { |
7558 filter = new FilterView.fromJson(_json["filter"]); | 8218 filter = new FilterView.fromJson(_json["filter"]); |
7559 } | 8219 } |
7560 } | 8220 } |
7561 | 8221 |
7562 core.Map toJson() { | 8222 core.Map<core.String, core.Object> toJson() { |
7563 var _json = new core.Map(); | 8223 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
7564 if (fields != null) { | 8224 if (fields != null) { |
7565 _json["fields"] = fields; | 8225 _json["fields"] = fields; |
7566 } | 8226 } |
7567 if (filter != null) { | 8227 if (filter != null) { |
7568 _json["filter"] = (filter).toJson(); | 8228 _json["filter"] = (filter).toJson(); |
7569 } | 8229 } |
7570 return _json; | 8230 return _json; |
7571 } | 8231 } |
7572 } | 8232 } |
7573 | 8233 |
(...skipping 15 matching lines...) Expand all Loading... |
7589 | 8249 |
7590 UpdateNamedRangeRequest.fromJson(core.Map _json) { | 8250 UpdateNamedRangeRequest.fromJson(core.Map _json) { |
7591 if (_json.containsKey("fields")) { | 8251 if (_json.containsKey("fields")) { |
7592 fields = _json["fields"]; | 8252 fields = _json["fields"]; |
7593 } | 8253 } |
7594 if (_json.containsKey("namedRange")) { | 8254 if (_json.containsKey("namedRange")) { |
7595 namedRange = new NamedRange.fromJson(_json["namedRange"]); | 8255 namedRange = new NamedRange.fromJson(_json["namedRange"]); |
7596 } | 8256 } |
7597 } | 8257 } |
7598 | 8258 |
7599 core.Map toJson() { | 8259 core.Map<core.String, core.Object> toJson() { |
7600 var _json = new core.Map(); | 8260 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
7601 if (fields != null) { | 8261 if (fields != null) { |
7602 _json["fields"] = fields; | 8262 _json["fields"] = fields; |
7603 } | 8263 } |
7604 if (namedRange != null) { | 8264 if (namedRange != null) { |
7605 _json["namedRange"] = (namedRange).toJson(); | 8265 _json["namedRange"] = (namedRange).toJson(); |
7606 } | 8266 } |
7607 return _json; | 8267 return _json; |
7608 } | 8268 } |
7609 } | 8269 } |
7610 | 8270 |
(...skipping 15 matching lines...) Expand all Loading... |
7626 | 8286 |
7627 UpdateProtectedRangeRequest.fromJson(core.Map _json) { | 8287 UpdateProtectedRangeRequest.fromJson(core.Map _json) { |
7628 if (_json.containsKey("fields")) { | 8288 if (_json.containsKey("fields")) { |
7629 fields = _json["fields"]; | 8289 fields = _json["fields"]; |
7630 } | 8290 } |
7631 if (_json.containsKey("protectedRange")) { | 8291 if (_json.containsKey("protectedRange")) { |
7632 protectedRange = new ProtectedRange.fromJson(_json["protectedRange"]); | 8292 protectedRange = new ProtectedRange.fromJson(_json["protectedRange"]); |
7633 } | 8293 } |
7634 } | 8294 } |
7635 | 8295 |
7636 core.Map toJson() { | 8296 core.Map<core.String, core.Object> toJson() { |
7637 var _json = new core.Map(); | 8297 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
7638 if (fields != null) { | 8298 if (fields != null) { |
7639 _json["fields"] = fields; | 8299 _json["fields"] = fields; |
7640 } | 8300 } |
7641 if (protectedRange != null) { | 8301 if (protectedRange != null) { |
7642 _json["protectedRange"] = (protectedRange).toJson(); | 8302 _json["protectedRange"] = (protectedRange).toJson(); |
7643 } | 8303 } |
7644 return _json; | 8304 return _json; |
7645 } | 8305 } |
7646 } | 8306 } |
7647 | 8307 |
(...skipping 15 matching lines...) Expand all Loading... |
7663 | 8323 |
7664 UpdateSheetPropertiesRequest.fromJson(core.Map _json) { | 8324 UpdateSheetPropertiesRequest.fromJson(core.Map _json) { |
7665 if (_json.containsKey("fields")) { | 8325 if (_json.containsKey("fields")) { |
7666 fields = _json["fields"]; | 8326 fields = _json["fields"]; |
7667 } | 8327 } |
7668 if (_json.containsKey("properties")) { | 8328 if (_json.containsKey("properties")) { |
7669 properties = new SheetProperties.fromJson(_json["properties"]); | 8329 properties = new SheetProperties.fromJson(_json["properties"]); |
7670 } | 8330 } |
7671 } | 8331 } |
7672 | 8332 |
7673 core.Map toJson() { | 8333 core.Map<core.String, core.Object> toJson() { |
7674 var _json = new core.Map(); | 8334 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
7675 if (fields != null) { | 8335 if (fields != null) { |
7676 _json["fields"] = fields; | 8336 _json["fields"] = fields; |
7677 } | 8337 } |
7678 if (properties != null) { | 8338 if (properties != null) { |
7679 _json["properties"] = (properties).toJson(); | 8339 _json["properties"] = (properties).toJson(); |
7680 } | 8340 } |
7681 return _json; | 8341 return _json; |
7682 } | 8342 } |
7683 } | 8343 } |
7684 | 8344 |
(...skipping 12 matching lines...) Expand all Loading... |
7697 | 8357 |
7698 UpdateSpreadsheetPropertiesRequest.fromJson(core.Map _json) { | 8358 UpdateSpreadsheetPropertiesRequest.fromJson(core.Map _json) { |
7699 if (_json.containsKey("fields")) { | 8359 if (_json.containsKey("fields")) { |
7700 fields = _json["fields"]; | 8360 fields = _json["fields"]; |
7701 } | 8361 } |
7702 if (_json.containsKey("properties")) { | 8362 if (_json.containsKey("properties")) { |
7703 properties = new SpreadsheetProperties.fromJson(_json["properties"]); | 8363 properties = new SpreadsheetProperties.fromJson(_json["properties"]); |
7704 } | 8364 } |
7705 } | 8365 } |
7706 | 8366 |
7707 core.Map toJson() { | 8367 core.Map<core.String, core.Object> toJson() { |
7708 var _json = new core.Map(); | 8368 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
7709 if (fields != null) { | 8369 if (fields != null) { |
7710 _json["fields"] = fields; | 8370 _json["fields"] = fields; |
7711 } | 8371 } |
7712 if (properties != null) { | 8372 if (properties != null) { |
7713 _json["properties"] = (properties).toJson(); | 8373 _json["properties"] = (properties).toJson(); |
7714 } | 8374 } |
7715 return _json; | 8375 return _json; |
7716 } | 8376 } |
7717 } | 8377 } |
7718 | 8378 |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7753 updatedData = new ValueRange.fromJson(_json["updatedData"]); | 8413 updatedData = new ValueRange.fromJson(_json["updatedData"]); |
7754 } | 8414 } |
7755 if (_json.containsKey("updatedRange")) { | 8415 if (_json.containsKey("updatedRange")) { |
7756 updatedRange = _json["updatedRange"]; | 8416 updatedRange = _json["updatedRange"]; |
7757 } | 8417 } |
7758 if (_json.containsKey("updatedRows")) { | 8418 if (_json.containsKey("updatedRows")) { |
7759 updatedRows = _json["updatedRows"]; | 8419 updatedRows = _json["updatedRows"]; |
7760 } | 8420 } |
7761 } | 8421 } |
7762 | 8422 |
7763 core.Map toJson() { | 8423 core.Map<core.String, core.Object> toJson() { |
7764 var _json = new core.Map(); | 8424 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
7765 if (spreadsheetId != null) { | 8425 if (spreadsheetId != null) { |
7766 _json["spreadsheetId"] = spreadsheetId; | 8426 _json["spreadsheetId"] = spreadsheetId; |
7767 } | 8427 } |
7768 if (updatedCells != null) { | 8428 if (updatedCells != null) { |
7769 _json["updatedCells"] = updatedCells; | 8429 _json["updatedCells"] = updatedCells; |
7770 } | 8430 } |
7771 if (updatedColumns != null) { | 8431 if (updatedColumns != null) { |
7772 _json["updatedColumns"] = updatedColumns; | 8432 _json["updatedColumns"] = updatedColumns; |
7773 } | 8433 } |
7774 if (updatedData != null) { | 8434 if (updatedData != null) { |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7838 majorDimension = _json["majorDimension"]; | 8498 majorDimension = _json["majorDimension"]; |
7839 } | 8499 } |
7840 if (_json.containsKey("range")) { | 8500 if (_json.containsKey("range")) { |
7841 range = _json["range"]; | 8501 range = _json["range"]; |
7842 } | 8502 } |
7843 if (_json.containsKey("values")) { | 8503 if (_json.containsKey("values")) { |
7844 values = _json["values"]; | 8504 values = _json["values"]; |
7845 } | 8505 } |
7846 } | 8506 } |
7847 | 8507 |
7848 core.Map toJson() { | 8508 core.Map<core.String, core.Object> toJson() { |
7849 var _json = new core.Map(); | 8509 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
7850 if (majorDimension != null) { | 8510 if (majorDimension != null) { |
7851 _json["majorDimension"] = majorDimension; | 8511 _json["majorDimension"] = majorDimension; |
7852 } | 8512 } |
7853 if (range != null) { | 8513 if (range != null) { |
7854 _json["range"] = range; | 8514 _json["range"] = range; |
7855 } | 8515 } |
7856 if (values != null) { | 8516 if (values != null) { |
7857 _json["values"] = values; | 8517 _json["values"] = values; |
7858 } | 8518 } |
7859 return _json; | 8519 return _json; |
7860 } | 8520 } |
7861 } | 8521 } |
OLD | NEW |