// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast
//////////////////////////////////////////////////////////
// GENERATED BY FLUTTIFY. DO NOT EDIT IT.
//////////////////////////////////////////////////////////

import 'dart:typed_data';

import 'package:amap_search_fluttify/src/ios/ios.export.g.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/services.dart';

import 'package:foundation_fluttify/foundation_fluttify.dart';
import 'package:core_location_fluttify/core_location_fluttify.dart';
import 'package:amap_core_fluttify/amap_core_fluttify.dart';

class AMapBusLine extends AMapSearchObject with NSCoding, NSCopying {
  //region constants
  static const String name__ = 'AMapBusLine';

  @override
  final String tag__ = 'amap_search_fluttify';

  
  //endregion

  //region creators
  static Future<AMapBusLine> create__({ bool init = true /* ios only */ }) async {
    final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
      'ObjectFactory::createAMapBusLine',
      {'init': init}
    );
    return AmapSearchFluttifyIOSAs<AMapBusLine>(__result__)!;
  }
  
  static Future<List<AMapBusLine>> create_batch__(int length, { bool init = true /* ios only */ }) async {
    assert(true);
    final __result_batch__ = await  kAmapSearchFluttifyChannel.invokeListMethod(
      'ObjectFactory::create_batchAMapBusLine',
      {'length': length, 'init': init}
    );
    return __result_batch__
        ?.map((it) => AmapSearchFluttifyIOSAs<AMapBusLine>(it))
        .where((element) => element !=null)
        .cast<AMapBusLine>()
        .toList() ?? <AMapBusLine>[];
  }
  
  //endregion

  //region getters
  Future<String?> get_uid() async {
    final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusLine::get_uid", {'__this__': this});
    return __result__;
  }
  
  Future<String?> get_type() async {
    final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusLine::get_type", {'__this__': this});
    return __result__;
  }
  
  Future<String?> get_name() async {
    final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusLine::get_name", {'__this__': this});
    return __result__;
  }
  
  Future<String?> get_polyline() async {
    final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusLine::get_polyline", {'__this__': this});
    return __result__;
  }
  
  Future<String?> get_citycode() async {
    final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusLine::get_citycode", {'__this__': this});
    return __result__;
  }
  
  Future<String?> get_startStop() async {
    final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusLine::get_startStop", {'__this__': this});
    return __result__;
  }
  
  Future<String?> get_endStop() async {
    final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusLine::get_endStop", {'__this__': this});
    return __result__;
  }
  
  Future<AMapGeoPoint?> get_location() async {
    final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusLine::get_location", {'__this__': this});
    return AmapSearchFluttifyIOSAs<AMapGeoPoint>(__result__);
  }
  
  Future<String?> get_startTime() async {
    final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusLine::get_startTime", {'__this__': this});
    return __result__;
  }
  
  Future<String?> get_endTime() async {
    final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusLine::get_endTime", {'__this__': this});
    return __result__;
  }
  
  Future<String?> get_company() async {
    final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusLine::get_company", {'__this__': this});
    return __result__;
  }
  
  Future<double?> get_distance() async {
    final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusLine::get_distance", {'__this__': this});
    return __result__;
  }
  
  Future<double?> get_basicPrice() async {
    final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusLine::get_basicPrice", {'__this__': this});
    return __result__;
  }
  
  Future<double?> get_totalPrice() async {
    final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusLine::get_totalPrice", {'__this__': this});
    return __result__;
  }
  
  Future<AMapGeoPolygon?> get_bounds() async {
    final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusLine::get_bounds", {'__this__': this});
    return AmapSearchFluttifyIOSAs<AMapGeoPolygon>(__result__);
  }
  
  Future<List<AMapBusStop>?> get_busStops() async {
    final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusLine::get_busStops", {'__this__': this});
    return (__result__ as List?)?.map((it) => AmapSearchFluttifyIOSAs<AMapBusStop>(it)).where((e) => e != null).cast<AMapBusStop>().toList();
  }
  
  Future<AMapBusStop?> get_departureStop() async {
    final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusLine::get_departureStop", {'__this__': this});
    return AmapSearchFluttifyIOSAs<AMapBusStop>(__result__);
  }
  
  Future<AMapBusStop?> get_arrivalStop() async {
    final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusLine::get_arrivalStop", {'__this__': this});
    return AmapSearchFluttifyIOSAs<AMapBusStop>(__result__);
  }
  
  Future<List<AMapBusStop>?> get_viaBusStops() async {
    final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusLine::get_viaBusStops", {'__this__': this});
    return (__result__ as List?)?.map((it) => AmapSearchFluttifyIOSAs<AMapBusStop>(it)).where((e) => e != null).cast<AMapBusStop>().toList();
  }
  
  Future<int?> get_duration() async {
    final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusLine::get_duration", {'__this__': this});
    return __result__;
  }
  
  //endregion

  //region setters
  Future<void> set_uid(String uid) async {
    await kAmapSearchFluttifyChannel.invokeMethod('AMapBusLine::set_uid', <String, dynamic>{'__this__': this, "uid": uid});
  }
  
  Future<void> set_type(String type) async {
    await kAmapSearchFluttifyChannel.invokeMethod('AMapBusLine::set_type', <String, dynamic>{'__this__': this, "type": type});
  }
  
  Future<void> set_name(String name) async {
    await kAmapSearchFluttifyChannel.invokeMethod('AMapBusLine::set_name', <String, dynamic>{'__this__': this, "name": name});
  }
  
  Future<void> set_polyline(String polyline) async {
    await kAmapSearchFluttifyChannel.invokeMethod('AMapBusLine::set_polyline', <String, dynamic>{'__this__': this, "polyline": polyline});
  }
  
  Future<void> set_citycode(String citycode) async {
    await kAmapSearchFluttifyChannel.invokeMethod('AMapBusLine::set_citycode', <String, dynamic>{'__this__': this, "citycode": citycode});
  }
  
  Future<void> set_startStop(String startStop) async {
    await kAmapSearchFluttifyChannel.invokeMethod('AMapBusLine::set_startStop', <String, dynamic>{'__this__': this, "startStop": startStop});
  }
  
  Future<void> set_endStop(String endStop) async {
    await kAmapSearchFluttifyChannel.invokeMethod('AMapBusLine::set_endStop', <String, dynamic>{'__this__': this, "endStop": endStop});
  }
  
  Future<void> set_location(AMapGeoPoint location) async {
    await kAmapSearchFluttifyChannel.invokeMethod('AMapBusLine::set_location', <String, dynamic>{'__this__': this, "location": location});
  }
  
  Future<void> set_startTime(String startTime) async {
    await kAmapSearchFluttifyChannel.invokeMethod('AMapBusLine::set_startTime', <String, dynamic>{'__this__': this, "startTime": startTime});
  }
  
  Future<void> set_endTime(String endTime) async {
    await kAmapSearchFluttifyChannel.invokeMethod('AMapBusLine::set_endTime', <String, dynamic>{'__this__': this, "endTime": endTime});
  }
  
  Future<void> set_company(String company) async {
    await kAmapSearchFluttifyChannel.invokeMethod('AMapBusLine::set_company', <String, dynamic>{'__this__': this, "company": company});
  }
  
  Future<void> set_distance(double distance) async {
    await kAmapSearchFluttifyChannel.invokeMethod('AMapBusLine::set_distance', <String, dynamic>{'__this__': this, "distance": distance});
  }
  
  Future<void> set_basicPrice(double basicPrice) async {
    await kAmapSearchFluttifyChannel.invokeMethod('AMapBusLine::set_basicPrice', <String, dynamic>{'__this__': this, "basicPrice": basicPrice});
  }
  
  Future<void> set_totalPrice(double totalPrice) async {
    await kAmapSearchFluttifyChannel.invokeMethod('AMapBusLine::set_totalPrice', <String, dynamic>{'__this__': this, "totalPrice": totalPrice});
  }
  
  Future<void> set_bounds(AMapGeoPolygon bounds) async {
    await kAmapSearchFluttifyChannel.invokeMethod('AMapBusLine::set_bounds', <String, dynamic>{'__this__': this, "bounds": bounds});
  }
  
  Future<void> set_busStops(List<AMapBusStop> busStops) async {
    await kAmapSearchFluttifyChannel.invokeMethod('AMapBusLine::set_busStops', <String, dynamic>{'__this__': this, "busStops": busStops});
  }
  
  Future<void> set_departureStop(AMapBusStop departureStop) async {
    await kAmapSearchFluttifyChannel.invokeMethod('AMapBusLine::set_departureStop', <String, dynamic>{'__this__': this, "departureStop": departureStop});
  }
  
  Future<void> set_arrivalStop(AMapBusStop arrivalStop) async {
    await kAmapSearchFluttifyChannel.invokeMethod('AMapBusLine::set_arrivalStop', <String, dynamic>{'__this__': this, "arrivalStop": arrivalStop});
  }
  
  Future<void> set_viaBusStops(List<AMapBusStop> viaBusStops) async {
    await kAmapSearchFluttifyChannel.invokeMethod('AMapBusLine::set_viaBusStops', <String, dynamic>{'__this__': this, "viaBusStops": viaBusStops});
  }
  
  Future<void> set_duration(int duration) async {
    await kAmapSearchFluttifyChannel.invokeMethod('AMapBusLine::set_duration', <String, dynamic>{'__this__': this, "duration": duration});
  }
  
  //endregion

  //region methods
  
  //endregion

  @override
  String toString() {
    return 'AMapBusLine{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
  }
}

extension AMapBusLine_Batch on List<AMapBusLine?> {
  String? get refId {
    if (isEmpty) return null;
    return first?.refId;
  }

  //region getters
  Future<List<String?>> get_uid_batch() async {
    final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusLine::get_uid_batch", [for (final __item__ in this) {'__this__': __item__}]);
    return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
  }
  
  Future<List<String?>> get_type_batch() async {
    final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusLine::get_type_batch", [for (final __item__ in this) {'__this__': __item__}]);
    return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
  }
  
  Future<List<String?>> get_name_batch() async {
    final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusLine::get_name_batch", [for (final __item__ in this) {'__this__': __item__}]);
    return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
  }
  
  Future<List<String?>> get_polyline_batch() async {
    final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusLine::get_polyline_batch", [for (final __item__ in this) {'__this__': __item__}]);
    return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
  }
  
  Future<List<String?>> get_citycode_batch() async {
    final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusLine::get_citycode_batch", [for (final __item__ in this) {'__this__': __item__}]);
    return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
  }
  
  Future<List<String?>> get_startStop_batch() async {
    final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusLine::get_startStop_batch", [for (final __item__ in this) {'__this__': __item__}]);
    return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
  }
  
  Future<List<String?>> get_endStop_batch() async {
    final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusLine::get_endStop_batch", [for (final __item__ in this) {'__this__': __item__}]);
    return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
  }
  
  Future<List<AMapGeoPoint?>> get_location_batch() async {
    final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusLine::get_location_batch", [for (final __item__ in this) {'__this__': __item__}]);
    return (resultBatch as List).map((__result__) => AmapSearchFluttifyIOSAs<AMapGeoPoint>(__result__)).cast<AMapGeoPoint?>().toList();
  }
  
  Future<List<String?>> get_startTime_batch() async {
    final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusLine::get_startTime_batch", [for (final __item__ in this) {'__this__': __item__}]);
    return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
  }
  
  Future<List<String?>> get_endTime_batch() async {
    final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusLine::get_endTime_batch", [for (final __item__ in this) {'__this__': __item__}]);
    return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
  }
  
  Future<List<String?>> get_company_batch() async {
    final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusLine::get_company_batch", [for (final __item__ in this) {'__this__': __item__}]);
    return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
  }
  
  Future<List<double?>> get_distance_batch() async {
    final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusLine::get_distance_batch", [for (final __item__ in this) {'__this__': __item__}]);
    return (resultBatch as List).map((__result__) => __result__).cast<double?>().toList();
  }
  
  Future<List<double?>> get_basicPrice_batch() async {
    final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusLine::get_basicPrice_batch", [for (final __item__ in this) {'__this__': __item__}]);
    return (resultBatch as List).map((__result__) => __result__).cast<double?>().toList();
  }
  
  Future<List<double?>> get_totalPrice_batch() async {
    final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusLine::get_totalPrice_batch", [for (final __item__ in this) {'__this__': __item__}]);
    return (resultBatch as List).map((__result__) => __result__).cast<double?>().toList();
  }
  
  Future<List<AMapGeoPolygon?>> get_bounds_batch() async {
    final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusLine::get_bounds_batch", [for (final __item__ in this) {'__this__': __item__}]);
    return (resultBatch as List).map((__result__) => AmapSearchFluttifyIOSAs<AMapGeoPolygon>(__result__)).cast<AMapGeoPolygon?>().toList();
  }
  
  Future<List<List<AMapBusStop>?>> get_busStops_batch() async {
    final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusLine::get_busStops_batch", [for (final __item__ in this) {'__this__': __item__}]);
    return (resultBatch as List).map((__result__) => (__result__ as List?)?.map((it) => AmapSearchFluttifyIOSAs<AMapBusStop>(it)).where((e) => e != null).cast<AMapBusStop>().toList()).cast<List<AMapBusStop>?>().toList();
  }
  
  Future<List<AMapBusStop?>> get_departureStop_batch() async {
    final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusLine::get_departureStop_batch", [for (final __item__ in this) {'__this__': __item__}]);
    return (resultBatch as List).map((__result__) => AmapSearchFluttifyIOSAs<AMapBusStop>(__result__)).cast<AMapBusStop?>().toList();
  }
  
  Future<List<AMapBusStop?>> get_arrivalStop_batch() async {
    final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusLine::get_arrivalStop_batch", [for (final __item__ in this) {'__this__': __item__}]);
    return (resultBatch as List).map((__result__) => AmapSearchFluttifyIOSAs<AMapBusStop>(__result__)).cast<AMapBusStop?>().toList();
  }
  
  Future<List<List<AMapBusStop>?>> get_viaBusStops_batch() async {
    final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusLine::get_viaBusStops_batch", [for (final __item__ in this) {'__this__': __item__}]);
    return (resultBatch as List).map((__result__) => (__result__ as List?)?.map((it) => AmapSearchFluttifyIOSAs<AMapBusStop>(it)).where((e) => e != null).cast<AMapBusStop>().toList()).cast<List<AMapBusStop>?>().toList();
  }
  
  Future<List<int?>> get_duration_batch() async {
    final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusLine::get_duration_batch", [for (final __item__ in this) {'__this__': __item__}]);
    return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
  }
  
  //endregion

  //region setters
  Future<void> set_uid_batch(List<String> uid) async {
    await kAmapSearchFluttifyChannel.invokeMethod('AMapBusLine::set_uid_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "uid": uid[__i__]}]);
  
  
  }
  
  Future<void> set_type_batch(List<String> type) async {
    await kAmapSearchFluttifyChannel.invokeMethod('AMapBusLine::set_type_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "type": type[__i__]}]);
  
  
  }
  
  Future<void> set_name_batch(List<String> name) async {
    await kAmapSearchFluttifyChannel.invokeMethod('AMapBusLine::set_name_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "name": name[__i__]}]);
  
  
  }
  
  Future<void> set_polyline_batch(List<String> polyline) async {
    await kAmapSearchFluttifyChannel.invokeMethod('AMapBusLine::set_polyline_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "polyline": polyline[__i__]}]);
  
  
  }
  
  Future<void> set_citycode_batch(List<String> citycode) async {
    await kAmapSearchFluttifyChannel.invokeMethod('AMapBusLine::set_citycode_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "citycode": citycode[__i__]}]);
  
  
  }
  
  Future<void> set_startStop_batch(List<String> startStop) async {
    await kAmapSearchFluttifyChannel.invokeMethod('AMapBusLine::set_startStop_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "startStop": startStop[__i__]}]);
  
  
  }
  
  Future<void> set_endStop_batch(List<String> endStop) async {
    await kAmapSearchFluttifyChannel.invokeMethod('AMapBusLine::set_endStop_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "endStop": endStop[__i__]}]);
  
  
  }
  
  Future<void> set_location_batch(List<AMapGeoPoint> location) async {
    await kAmapSearchFluttifyChannel.invokeMethod('AMapBusLine::set_location_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "location": location[__i__]}]);
  
  
  }
  
  Future<void> set_startTime_batch(List<String> startTime) async {
    await kAmapSearchFluttifyChannel.invokeMethod('AMapBusLine::set_startTime_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "startTime": startTime[__i__]}]);
  
  
  }
  
  Future<void> set_endTime_batch(List<String> endTime) async {
    await kAmapSearchFluttifyChannel.invokeMethod('AMapBusLine::set_endTime_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "endTime": endTime[__i__]}]);
  
  
  }
  
  Future<void> set_company_batch(List<String> company) async {
    await kAmapSearchFluttifyChannel.invokeMethod('AMapBusLine::set_company_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "company": company[__i__]}]);
  
  
  }
  
  Future<void> set_distance_batch(List<double> distance) async {
    await kAmapSearchFluttifyChannel.invokeMethod('AMapBusLine::set_distance_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "distance": distance[__i__]}]);
  
  
  }
  
  Future<void> set_basicPrice_batch(List<double> basicPrice) async {
    await kAmapSearchFluttifyChannel.invokeMethod('AMapBusLine::set_basicPrice_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "basicPrice": basicPrice[__i__]}]);
  
  
  }
  
  Future<void> set_totalPrice_batch(List<double> totalPrice) async {
    await kAmapSearchFluttifyChannel.invokeMethod('AMapBusLine::set_totalPrice_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "totalPrice": totalPrice[__i__]}]);
  
  
  }
  
  Future<void> set_bounds_batch(List<AMapGeoPolygon> bounds) async {
    await kAmapSearchFluttifyChannel.invokeMethod('AMapBusLine::set_bounds_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "bounds": bounds[__i__]}]);
  
  
  }
  
  Future<void> set_busStops_batch(List<List<AMapBusStop>> busStops) async {
    await kAmapSearchFluttifyChannel.invokeMethod('AMapBusLine::set_busStops_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "busStops": busStops[__i__]}]);
  
  
  }
  
  Future<void> set_departureStop_batch(List<AMapBusStop> departureStop) async {
    await kAmapSearchFluttifyChannel.invokeMethod('AMapBusLine::set_departureStop_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "departureStop": departureStop[__i__]}]);
  
  
  }
  
  Future<void> set_arrivalStop_batch(List<AMapBusStop> arrivalStop) async {
    await kAmapSearchFluttifyChannel.invokeMethod('AMapBusLine::set_arrivalStop_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "arrivalStop": arrivalStop[__i__]}]);
  
  
  }
  
  Future<void> set_viaBusStops_batch(List<List<AMapBusStop>> viaBusStops) async {
    await kAmapSearchFluttifyChannel.invokeMethod('AMapBusLine::set_viaBusStops_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "viaBusStops": viaBusStops[__i__]}]);
  
  
  }
  
  Future<void> set_duration_batch(List<int> duration) async {
    await kAmapSearchFluttifyChannel.invokeMethod('AMapBusLine::set_duration_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "duration": duration[__i__]}]);
  
  
  }
  
  //endregion

  //region methods
  
  //endregion
}