| 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.vision.v1; | 3 library googleapis.vision.v1; |
| 4 | 4 |
| 5 import 'dart:core' as core; | 5 import 'dart:core' as core; |
| 6 import 'dart:async' as async; | 6 import 'dart:async' as async; |
| 7 import 'dart:convert' as convert; | 7 import 'dart:convert' as convert; |
| 8 | 8 |
| 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; | 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; |
| 10 import 'package:http/http.dart' as http; | 10 import 'package:http/http.dart' as http; |
| (...skipping 1160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1171 * assert (0.0, 0.0) == NormalizeLatLng(360.0, 0.0) | 1171 * assert (0.0, 0.0) == NormalizeLatLng(360.0, 0.0) |
| 1172 * assert (0.0, 0.0) == NormalizeLatLng(-360.0, 0.0) | 1172 * assert (0.0, 0.0) == NormalizeLatLng(-360.0, 0.0) |
| 1173 * assert (85.0, 180.0) == NormalizeLatLng(95.0, 0.0) | 1173 * assert (85.0, 180.0) == NormalizeLatLng(95.0, 0.0) |
| 1174 * assert (-85.0, -170.0) == NormalizeLatLng(-95.0, 10.0) | 1174 * assert (-85.0, -170.0) == NormalizeLatLng(-95.0, 10.0) |
| 1175 * assert (90.0, 10.0) == NormalizeLatLng(90.0, 10.0) | 1175 * assert (90.0, 10.0) == NormalizeLatLng(90.0, 10.0) |
| 1176 * assert (-90.0, -10.0) == NormalizeLatLng(-90.0, -10.0) | 1176 * assert (-90.0, -10.0) == NormalizeLatLng(-90.0, -10.0) |
| 1177 * assert (0.0, -170.0) == NormalizeLatLng(-180.0, 10.0) | 1177 * assert (0.0, -170.0) == NormalizeLatLng(-180.0, 10.0) |
| 1178 * assert (0.0, -170.0) == NormalizeLatLng(180.0, 10.0) | 1178 * assert (0.0, -170.0) == NormalizeLatLng(180.0, 10.0) |
| 1179 * assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.0) | 1179 * assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.0) |
| 1180 * assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0) | 1180 * assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0) |
| 1181 * |
| 1182 * The code in logs/storage/validator/logs_validator_traits.cc treats this type |
| 1183 * as if it were annotated as ST_LOCATION. |
| 1181 */ | 1184 */ |
| 1182 class LatLng { | 1185 class LatLng { |
| 1183 /** The latitude in degrees. It must be in the range [-90.0, +90.0]. */ | 1186 /** The latitude in degrees. It must be in the range [-90.0, +90.0]. */ |
| 1184 core.double latitude; | 1187 core.double latitude; |
| 1185 /** The longitude in degrees. It must be in the range [-180.0, +180.0]. */ | 1188 /** The longitude in degrees. It must be in the range [-180.0, +180.0]. */ |
| 1186 core.double longitude; | 1189 core.double longitude; |
| 1187 | 1190 |
| 1188 LatLng(); | 1191 LatLng(); |
| 1189 | 1192 |
| 1190 LatLng.fromJson(core.Map _json) { | 1193 LatLng.fromJson(core.Map _json) { |
| (...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1559 var _json = new core.Map(); | 1562 var _json = new core.Map(); |
| 1560 if (x != null) { | 1563 if (x != null) { |
| 1561 _json["x"] = x; | 1564 _json["x"] = x; |
| 1562 } | 1565 } |
| 1563 if (y != null) { | 1566 if (y != null) { |
| 1564 _json["y"] = y; | 1567 _json["y"] = y; |
| 1565 } | 1568 } |
| 1566 return _json; | 1569 return _json; |
| 1567 } | 1570 } |
| 1568 } | 1571 } |
| OLD | NEW |