// 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:io';

import 'package:flutter/foundation.dart';
import 'package:flutter/services.dart';
import 'package:amap_search_fluttify/src/android/android.export.g.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';


// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import
// type check
@optionalTypeArgs
Future<bool> AmapSearchFluttifyAndroidIs<T>(dynamic __this__) async {
  final typeName = T.toString();
  if (RegExp(r'^(List<)?(String|int|double)(>)?|(Map<String,(String|int|double)>)$').hasMatch(typeName)) {
    return __this__ is T;
  }
  else if (T == com_amap_api_services_busline_BusLineSearch_OnBusLineSearchListener) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_busline_BusLineSearch_OnBusLineSearchListener', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_busline_BusStationSearch_OnBusStationSearchListener) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_busline_BusStationSearch_OnBusStationSearchListener', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_busline_BusLineItem) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_busline_BusLineItem', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_busline_BusStationResult) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_busline_BusStationResult', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_busline_BusStationSearch) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_busline_BusStationSearch', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_busline_BusLineSearch) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_busline_BusLineSearch', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_busline_BusLineQuery) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_busline_BusLineQuery', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_busline_BusLineResult) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_busline_BusLineResult', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_busline_BusStationItem) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_busline_BusStationItem', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_busline_BusStationQuery) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_busline_BusStationQuery', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_core_AMapException) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_core_AMapException', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_core_ServiceSettings) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_core_ServiceSettings', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_core_SearchUtils) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_core_SearchUtils', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_core_LatLonSharePoint) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_core_LatLonSharePoint', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_core_LatLonPoint) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_core_LatLonPoint', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_core_PoiItem) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_core_PoiItem', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_core_SuggestionCity) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_core_SuggestionCity', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_poisearch_Photo) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_poisearch_Photo', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_poisearch_SubPoiItem) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_poisearch_SubPoiItem', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_poisearch_PoiSearch_OnPoiSearchListener) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_poisearch_PoiSearch_OnPoiSearchListener', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_poisearch_PoiItemExtension) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_poisearch_PoiItemExtension', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_poisearch_PoiSearch_SearchBound) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_poisearch_PoiSearch_SearchBound', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_poisearch_PoiResult) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_poisearch_PoiResult', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_poisearch_PoiSearch) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_poisearch_PoiSearch', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_poisearch_PoiSearch_Query) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_poisearch_PoiSearch_Query', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_poisearch_IndoorData) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_poisearch_IndoorData', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_route_Railway) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_route_Railway', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_route_BusPath) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_route_BusPath', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_route_DriveRoutePlanResult) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_route_DriveRoutePlanResult', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_route_RouteSearchV2_OnRoutePlanSearchListener) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_route_RouteSearchV2_OnRoutePlanSearchListener', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_route_RouteSearch_TruckRouteQuery) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_route_RouteSearch_TruckRouteQuery', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_route_TMC) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_route_TMC', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_route_RouteBusWalkItem) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_route_RouteBusWalkItem', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_route_RouteResult) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_route_RouteResult', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_route_RouteSearch) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_route_RouteSearch', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_route_BusStep) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_route_BusStep', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_route_TaxiItem) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_route_TaxiItem', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_route_BusRouteResult) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_route_BusRouteResult', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_route_RoutePlanResult) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_route_RoutePlanResult', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_route_DistanceSearch_OnDistanceSearchListener) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_route_DistanceSearch_OnDistanceSearchListener', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_route_RailwaySpace) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_route_RailwaySpace', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_route_TruckRouteRestult) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_route_TruckRouteRestult', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_route_RouteSearch_RideRouteQuery) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_route_RouteSearch_RideRouteQuery', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_route_RouteSearch_DriveRouteQuery) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_route_RouteSearch_DriveRouteQuery', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_route_RouteSearchV2_NewEnergy) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_route_RouteSearchV2_NewEnergy', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_route_RouteSearchV2_TransCost) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_route_RouteSearchV2_TransCost', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_route_RouteRailwayItem) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_route_RouteRailwayItem', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_route_RouteSearchV2) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_route_RouteSearchV2', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_route_RouteSearchV2_SpeedCost) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_route_RouteSearchV2_SpeedCost', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_route_WalkStep) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_route_WalkStep', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_route_RouteSearchV2_CurveCost) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_route_RouteSearchV2_CurveCost', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_route_RouteSearchV2_SlopeCost) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_route_RouteSearchV2_SlopeCost', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_route_RailwayStationItem) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_route_RailwayStationItem', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_route_RideRouteResult) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_route_RideRouteResult', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_route_ChargeStationInfo) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_route_ChargeStationInfo', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_route_RouteSearch_FromAndTo) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_route_RouteSearch_FromAndTo', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_route_RidePath) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_route_RidePath', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_route_RouteSearch_BusRouteQuery) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_route_RouteSearch_BusRouteQuery', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_route_RideStep) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_route_RideStep', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_route_RouteSearchV2_DriveRouteQuery) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_route_RouteSearchV2_DriveRouteQuery', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_route_RouteSearchV2_PowerTrainLoss) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_route_RouteSearchV2_PowerTrainLoss', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_route_RouteSearchCity) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_route_RouteSearchCity', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_route_RouteSearch_OnRouteSearchListener) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_route_RouteSearch_OnRouteSearchListener', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_route_RouteSearchV2_OnTruckRouteSearchListener) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_route_RouteSearchV2_OnTruckRouteSearchListener', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_route_Navi) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_route_Navi', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_route_Cost) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_route_Cost', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_route_DistanceResult) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_route_DistanceResult', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_route_RouteSearch_WalkRouteQuery) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_route_RouteSearch_WalkRouteQuery', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_route_District) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_route_District', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_route_DriveRouteResultV2) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_route_DriveRouteResultV2', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_route_WalkRouteResult) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_route_WalkRouteResult', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_route_DistanceSearch_DistanceQuery) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_route_DistanceSearch_DistanceQuery', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_route_SearchCity) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_route_SearchCity', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_route_RouteSearch_OnRoutePlanSearchListener) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_route_RouteSearch_OnRoutePlanSearchListener', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_route_DistanceSearch) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_route_DistanceSearch', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_route_WalkPath) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_route_WalkPath', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_route_RouteSearchV2_OnRouteSearchListener) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_route_RouteSearchV2_OnRouteSearchListener', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_route_ElecConsumeInfo) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_route_ElecConsumeInfo', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_route_DriveStepV2) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_route_DriveStepV2', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_route_RouteBusLineItem) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_route_RouteBusLineItem', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_route_RouteSearch_DrivePlanQuery) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_route_RouteSearch_DrivePlanQuery', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_route_RouteSearchV2_CustomCostMode) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_route_RouteSearchV2_CustomCostMode', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_route_DrivePlanStep) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_route_DrivePlanStep', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_route_RouteSearchV2_ShowFields) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_route_RouteSearchV2_ShowFields', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_route_TimeInfo) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_route_TimeInfo', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_route_RouteSearchV2_FromAndTo) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_route_RouteSearchV2_FromAndTo', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_route_DriveStep) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_route_DriveStep', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_route_TruckStep) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_route_TruckStep', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_route_DriveRouteResult) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_route_DriveRouteResult', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_route_DrivePath) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_route_DrivePath', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_route_TruckPath) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_route_TruckPath', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_route_Doorway) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_route_Doorway', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_route_DrivePlanPath) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_route_DrivePlanPath', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_route_TimeInfosElement) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_route_TimeInfosElement', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_route_RouteSearch_OnTruckRouteSearchListener) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_route_RouteSearch_OnTruckRouteSearchListener', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_route_DrivePathV2) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_route_DrivePathV2', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_route_DistanceItem) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_route_DistanceItem', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_route_Path) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_route_Path', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_road_Road) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_road_Road', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_road_Crossroad) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_road_Crossroad', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_nearby_NearbySearch_NearbyListener) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_nearby_NearbySearch_NearbyListener', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_nearby_UploadInfoCallback) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_nearby_UploadInfoCallback', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_nearby_NearbyInfo) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_nearby_NearbyInfo', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_nearby_UploadInfo) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_nearby_UploadInfo', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_nearby_NearbySearch) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_nearby_NearbySearch', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_nearby_NearbySearchResult) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_nearby_NearbySearchResult', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_nearby_NearbySearch_NearbyQuery) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_nearby_NearbySearch_NearbyQuery', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_routepoisearch_RoutePOIItem) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_routepoisearch_RoutePOIItem', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_routepoisearch_RoutePOISearch) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_routepoisearch_RoutePOISearch', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_routepoisearch_RoutePOISearchResult) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_routepoisearch_RoutePOISearchResult', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_routepoisearch_RoutePOISearch_OnRoutePOISearchListener) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_routepoisearch_RoutePOISearch_OnRoutePOISearchListener', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_routepoisearch_RoutePOISearchQuery) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_routepoisearch_RoutePOISearchQuery', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_cloud_CloudItem) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_cloud_CloudItem', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_cloud_CloudSearch_Query) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_cloud_CloudSearch_Query', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_cloud_CloudResult) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_cloud_CloudResult', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_cloud_CloudSearch) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_cloud_CloudSearch', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_cloud_CloudSearch_SearchBound) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_cloud_CloudSearch_SearchBound', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_cloud_CloudImage) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_cloud_CloudImage', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_cloud_CloudSearch_Sortingrules) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_cloud_CloudSearch_Sortingrules', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_cloud_CloudItemDetail) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_cloud_CloudItemDetail', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_cloud_CloudSearch_OnCloudSearchListener) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_cloud_CloudSearch_OnCloudSearchListener', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_weather_LocalDayWeatherForecast) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_weather_LocalDayWeatherForecast', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_weather_WeatherSearchQuery) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_weather_WeatherSearchQuery', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_weather_WeatherSearch_OnWeatherSearchListener) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_weather_WeatherSearch_OnWeatherSearchListener', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_weather_LocalWeatherForecastResult) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_weather_LocalWeatherForecastResult', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_weather_LocalWeatherForecast) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_weather_LocalWeatherForecast', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_weather_WeatherSearch) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_weather_WeatherSearch', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_weather_LocalWeatherLive) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_weather_LocalWeatherLive', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_weather_LocalWeatherLiveResult) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_weather_LocalWeatherLiveResult', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_geocoder_BusinessArea) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_geocoder_BusinessArea', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_geocoder_GeocodeQuery) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_geocoder_GeocodeQuery', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_geocoder_GeocodeSearch) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_geocoder_GeocodeSearch', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_geocoder_RegeocodeResult) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_geocoder_RegeocodeResult', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_geocoder_GeocodeResult) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_geocoder_GeocodeResult', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_geocoder_AoiItem) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_geocoder_AoiItem', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_geocoder_GeocodeSearch_OnGeocodeSearchListener) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_geocoder_GeocodeSearch_OnGeocodeSearchListener', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_geocoder_RegeocodeRoad) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_geocoder_RegeocodeRoad', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_geocoder_GeocodeAddress) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_geocoder_GeocodeAddress', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_geocoder_RegeocodeQuery) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_geocoder_RegeocodeQuery', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_geocoder_StreetNumber) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_geocoder_StreetNumber', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_geocoder_RegeocodeAddress) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_geocoder_RegeocodeAddress', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_district_DistrictSearchQuery) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_district_DistrictSearchQuery', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_district_DistrictSearch) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_district_DistrictSearch', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_district_DistrictResult) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_district_DistrictResult', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_district_DistrictItem) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_district_DistrictItem', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_district_DistrictSearch_OnDistrictSearchListener) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_district_DistrictSearch_OnDistrictSearchListener', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_help_Inputtips_InputtipsListener) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_help_Inputtips_InputtipsListener', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_help_Tip) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_help_Tip', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_help_InputtipsQuery) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_help_InputtipsQuery', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_help_Inputtips) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_help_Inputtips', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_share_ShareSearch_ShareNaviQuery) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_share_ShareSearch_ShareNaviQuery', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_share_ShareSearch_ShareBusRouteQuery) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_share_ShareSearch_ShareBusRouteQuery', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_share_ShareSearch) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_share_ShareSearch', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_share_ShareSearch_ShareFromAndTo) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_share_ShareSearch_ShareFromAndTo', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_share_ShareSearch_ShareWalkRouteQuery) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_share_ShareSearch_ShareWalkRouteQuery', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_share_ShareSearch_ShareDrivingRouteQuery) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_share_ShareSearch_ShareDrivingRouteQuery', {'__this__': __this__});
    return result;
  } else if (T == com_amap_api_services_share_ShareSearch_OnShareSearchListener) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_services_share_ShareSearch_OnShareSearchListener', {'__this__': __this__});
    return result;
  } else if (T == android_content_Context) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfandroid_content_Context', {'__this__': __this__});
    return result;
  } else if (T == android_content_Intent) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfandroid_content_Intent', {'__this__': __this__});
    return result;
  } else if (T == android_content_ContentProvider) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfandroid_content_ContentProvider', {'__this__': __this__});
    return result;
  } else if (T == android_app_Application) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfandroid_app_Application', {'__this__': __this__});
    return result;
  } else if (T == android_app_Notification) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfandroid_app_Notification', {'__this__': __this__});
    return result;
  } else if (T == android_app_Activity) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfandroid_app_Activity', {'__this__': __this__});
    return result;
  } else if (T == android_app_PendingIntent) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfandroid_app_PendingIntent', {'__this__': __this__});
    return result;
  } else if (T == android_os_Bundle) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfandroid_os_Bundle', {'__this__': __this__});
    return result;
  } else if (T == android_os_Binder) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfandroid_os_Binder', {'__this__': __this__});
    return result;
  } else if (T == android_view_View) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfandroid_view_View', {'__this__': __this__});
    return result;
  } else if (T == android_view_SurfaceView) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfandroid_view_SurfaceView', {'__this__': __this__});
    return result;
  } else if (T == android_view_SurfaceHolder) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfandroid_view_SurfaceHolder', {'__this__': __this__});
    return result;
  } else if (T == android_opengl_GLSurfaceView) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfandroid_opengl_GLSurfaceView', {'__this__': __this__});
    return result;
  } else if (T == android_view_View_OnApplyWindowInsetsListener) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfandroid_view_View_OnApplyWindowInsetsListener', {'__this__': __this__});
    return result;
  } else if (T == android_view_ViewGroup) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfandroid_view_ViewGroup', {'__this__': __this__});
    return result;
  } else if (T == android_graphics_Point) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfandroid_graphics_Point', {'__this__': __this__});
    return result;
  } else if (T == android_graphics_PointF) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfandroid_graphics_PointF', {'__this__': __this__});
    return result;
  } else if (T == android_graphics_Bitmap) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfandroid_graphics_Bitmap', {'__this__': __this__});
    return result;
  } else if (T == android_widget_ImageView) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfandroid_widget_ImageView', {'__this__': __this__});
    return result;
  } else if (T == java_io_Serializable) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfjava_io_Serializable', {'__this__': __this__});
    return result;
  } else if (T == java_io_File) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfjava_io_File', {'__this__': __this__});
    return result;
  } else if (T == android_location_Location) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfandroid_location_Location', {'__this__': __this__});
    return result;
  } else if (T == android_view_MotionEvent) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfandroid_view_MotionEvent', {'__this__': __this__});
    return result;
  } else if (T == android_graphics_drawable_Drawable) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfandroid_graphics_drawable_Drawable', {'__this__': __this__});
    return result;
  } else if (T == android_widget_FrameLayout) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfandroid_widget_FrameLayout', {'__this__': __this__});
    return result;
  } else if (T == android_widget_TextView) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfandroid_widget_TextView', {'__this__': __this__});
    return result;
  } else if (T == android_widget_LinearLayout) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfandroid_widget_LinearLayout', {'__this__': __this__});
    return result;
  } else if (T == android_widget_RelativeLayout) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfandroid_widget_RelativeLayout', {'__this__': __this__});
    return result;
  } else if (T == android_os_Parcelable) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfandroid_os_Parcelable', {'__this__': __this__});
    return result;
  } else if (T == android_util_Pair) {
    final result = await kAmapSearchFluttifyChannel.invokeMethod('RefClass::isKindOfandroid_util_Pair', {'__this__': __this__});
    return result;
  }
  else {
    return false;
  }
}

// type cast
// 给一个可选的泛型, 如果没有指定泛型就返回dynamic
@optionalTypeArgs
T? AmapSearchFluttifyAndroidAs<T>(dynamic __this__) {
  final typeName = T.toString();

  if (__this__ == null) {
    return null;
  } else if (RegExp(r'^(List<)?(String|int|double)(>)?|(Map<String,(String|int|double)>)$').hasMatch(typeName)) {
    return __this__ as T;
  }
  else if (T == com_amap_api_services_busline_BusLineSearch_OnBusLineSearchListener) {
    return (com_amap_api_services_busline_BusLineSearch_OnBusLineSearchListener.subInstance()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_busline_BusStationSearch_OnBusStationSearchListener) {
    return (com_amap_api_services_busline_BusStationSearch_OnBusStationSearchListener.subInstance()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_busline_BusLineItem) {
    return (com_amap_api_services_busline_BusLineItem()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_busline_BusStationResult) {
    return (com_amap_api_services_busline_BusStationResult()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_busline_BusStationSearch) {
    return (com_amap_api_services_busline_BusStationSearch()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_busline_BusLineSearch) {
    return (com_amap_api_services_busline_BusLineSearch()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_busline_BusLineQuery) {
    return (com_amap_api_services_busline_BusLineQuery()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_busline_BusLineResult) {
    return (com_amap_api_services_busline_BusLineResult()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_busline_BusStationItem) {
    return (com_amap_api_services_busline_BusStationItem()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_busline_BusStationQuery) {
    return (com_amap_api_services_busline_BusStationQuery()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_core_AMapException) {
    return (com_amap_api_services_core_AMapException()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_core_ServiceSettings) {
    return (com_amap_api_services_core_ServiceSettings()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_core_SearchUtils) {
    return (com_amap_api_services_core_SearchUtils()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_core_LatLonSharePoint) {
    return (com_amap_api_services_core_LatLonSharePoint()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_core_LatLonPoint) {
    return (com_amap_api_services_core_LatLonPoint()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_core_PoiItem) {
    return (com_amap_api_services_core_PoiItem()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_core_SuggestionCity) {
    return (com_amap_api_services_core_SuggestionCity()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_poisearch_Photo) {
    return (com_amap_api_services_poisearch_Photo()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_poisearch_SubPoiItem) {
    return (com_amap_api_services_poisearch_SubPoiItem()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_poisearch_PoiSearch_OnPoiSearchListener) {
    return (com_amap_api_services_poisearch_PoiSearch_OnPoiSearchListener.subInstance()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_poisearch_PoiItemExtension) {
    return (com_amap_api_services_poisearch_PoiItemExtension()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_poisearch_PoiSearch_SearchBound) {
    return (com_amap_api_services_poisearch_PoiSearch_SearchBound()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_poisearch_PoiResult) {
    return (com_amap_api_services_poisearch_PoiResult()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_poisearch_PoiSearch) {
    return (com_amap_api_services_poisearch_PoiSearch()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_poisearch_PoiSearch_Query) {
    return (com_amap_api_services_poisearch_PoiSearch_Query()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_poisearch_IndoorData) {
    return (com_amap_api_services_poisearch_IndoorData()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_route_Railway) {
    return (com_amap_api_services_route_Railway()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_route_BusPath) {
    return (com_amap_api_services_route_BusPath()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_route_DriveRoutePlanResult) {
    return (com_amap_api_services_route_DriveRoutePlanResult()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_route_RouteSearchV2_OnRoutePlanSearchListener) {
    return (com_amap_api_services_route_RouteSearchV2_OnRoutePlanSearchListener.subInstance()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_route_RouteSearch_TruckRouteQuery) {
    return (com_amap_api_services_route_RouteSearch_TruckRouteQuery()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_route_TMC) {
    return (com_amap_api_services_route_TMC()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_route_RouteBusWalkItem) {
    return (com_amap_api_services_route_RouteBusWalkItem()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_route_RouteResult) {
    return (com_amap_api_services_route_RouteResult()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_route_RouteSearch) {
    return (com_amap_api_services_route_RouteSearch()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_route_BusStep) {
    return (com_amap_api_services_route_BusStep()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_route_TaxiItem) {
    return (com_amap_api_services_route_TaxiItem()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_route_BusRouteResult) {
    return (com_amap_api_services_route_BusRouteResult()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_route_RoutePlanResult) {
    return (com_amap_api_services_route_RoutePlanResult()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_route_DistanceSearch_OnDistanceSearchListener) {
    return (com_amap_api_services_route_DistanceSearch_OnDistanceSearchListener.subInstance()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_route_RailwaySpace) {
    return (com_amap_api_services_route_RailwaySpace()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_route_TruckRouteRestult) {
    return (com_amap_api_services_route_TruckRouteRestult()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_route_RouteSearch_RideRouteQuery) {
    return (com_amap_api_services_route_RouteSearch_RideRouteQuery()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_route_RouteSearch_DriveRouteQuery) {
    return (com_amap_api_services_route_RouteSearch_DriveRouteQuery()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_route_RouteSearchV2_NewEnergy) {
    return (com_amap_api_services_route_RouteSearchV2_NewEnergy()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_route_RouteSearchV2_TransCost) {
    return (com_amap_api_services_route_RouteSearchV2_TransCost()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_route_RouteRailwayItem) {
    return (com_amap_api_services_route_RouteRailwayItem()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_route_RouteSearchV2) {
    return (com_amap_api_services_route_RouteSearchV2()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_route_RouteSearchV2_SpeedCost) {
    return (com_amap_api_services_route_RouteSearchV2_SpeedCost()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_route_WalkStep) {
    return (com_amap_api_services_route_WalkStep()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_route_RouteSearchV2_CurveCost) {
    return (com_amap_api_services_route_RouteSearchV2_CurveCost()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_route_RouteSearchV2_SlopeCost) {
    return (com_amap_api_services_route_RouteSearchV2_SlopeCost()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_route_RailwayStationItem) {
    return (com_amap_api_services_route_RailwayStationItem()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_route_RideRouteResult) {
    return (com_amap_api_services_route_RideRouteResult()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_route_ChargeStationInfo) {
    return (com_amap_api_services_route_ChargeStationInfo()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_route_RouteSearch_FromAndTo) {
    return (com_amap_api_services_route_RouteSearch_FromAndTo()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_route_RidePath) {
    return (com_amap_api_services_route_RidePath()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_route_RouteSearch_BusRouteQuery) {
    return (com_amap_api_services_route_RouteSearch_BusRouteQuery()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_route_RideStep) {
    return (com_amap_api_services_route_RideStep()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_route_RouteSearchV2_DriveRouteQuery) {
    return (com_amap_api_services_route_RouteSearchV2_DriveRouteQuery()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_route_RouteSearchV2_PowerTrainLoss) {
    return (com_amap_api_services_route_RouteSearchV2_PowerTrainLoss()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_route_RouteSearchCity) {
    return (com_amap_api_services_route_RouteSearchCity()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_route_RouteSearch_OnRouteSearchListener) {
    return (com_amap_api_services_route_RouteSearch_OnRouteSearchListener.subInstance()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_route_RouteSearchV2_OnTruckRouteSearchListener) {
    return (com_amap_api_services_route_RouteSearchV2_OnTruckRouteSearchListener.subInstance()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_route_Navi) {
    return (com_amap_api_services_route_Navi()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_route_Cost) {
    return (com_amap_api_services_route_Cost()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_route_DistanceResult) {
    return (com_amap_api_services_route_DistanceResult()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_route_RouteSearch_WalkRouteQuery) {
    return (com_amap_api_services_route_RouteSearch_WalkRouteQuery()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_route_District) {
    return (com_amap_api_services_route_District()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_route_DriveRouteResultV2) {
    return (com_amap_api_services_route_DriveRouteResultV2()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_route_WalkRouteResult) {
    return (com_amap_api_services_route_WalkRouteResult()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_route_DistanceSearch_DistanceQuery) {
    return (com_amap_api_services_route_DistanceSearch_DistanceQuery()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_route_SearchCity) {
    return (com_amap_api_services_route_SearchCity()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_route_RouteSearch_OnRoutePlanSearchListener) {
    return (com_amap_api_services_route_RouteSearch_OnRoutePlanSearchListener.subInstance()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_route_DistanceSearch) {
    return (com_amap_api_services_route_DistanceSearch()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_route_WalkPath) {
    return (com_amap_api_services_route_WalkPath()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_route_RouteSearchV2_OnRouteSearchListener) {
    return (com_amap_api_services_route_RouteSearchV2_OnRouteSearchListener.subInstance()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_route_ElecConsumeInfo) {
    return (com_amap_api_services_route_ElecConsumeInfo()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_route_DriveStepV2) {
    return (com_amap_api_services_route_DriveStepV2()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_route_RouteBusLineItem) {
    return (com_amap_api_services_route_RouteBusLineItem()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_route_RouteSearch_DrivePlanQuery) {
    return (com_amap_api_services_route_RouteSearch_DrivePlanQuery()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_route_RouteSearchV2_CustomCostMode) {
    return (com_amap_api_services_route_RouteSearchV2_CustomCostMode()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_route_DrivePlanStep) {
    return (com_amap_api_services_route_DrivePlanStep()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_route_RouteSearchV2_ShowFields) {
    return (com_amap_api_services_route_RouteSearchV2_ShowFields()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_route_TimeInfo) {
    return (com_amap_api_services_route_TimeInfo()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_route_RouteSearchV2_FromAndTo) {
    return (com_amap_api_services_route_RouteSearchV2_FromAndTo()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_route_DriveStep) {
    return (com_amap_api_services_route_DriveStep()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_route_TruckStep) {
    return (com_amap_api_services_route_TruckStep()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_route_DriveRouteResult) {
    return (com_amap_api_services_route_DriveRouteResult()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_route_DrivePath) {
    return (com_amap_api_services_route_DrivePath()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_route_TruckPath) {
    return (com_amap_api_services_route_TruckPath()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_route_Doorway) {
    return (com_amap_api_services_route_Doorway()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_route_DrivePlanPath) {
    return (com_amap_api_services_route_DrivePlanPath()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_route_TimeInfosElement) {
    return (com_amap_api_services_route_TimeInfosElement()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_route_RouteSearch_OnTruckRouteSearchListener) {
    return (com_amap_api_services_route_RouteSearch_OnTruckRouteSearchListener.subInstance()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_route_DrivePathV2) {
    return (com_amap_api_services_route_DrivePathV2()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_route_DistanceItem) {
    return (com_amap_api_services_route_DistanceItem()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_route_Path) {
    return (com_amap_api_services_route_Path()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_road_Road) {
    return (com_amap_api_services_road_Road()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_road_Crossroad) {
    return (com_amap_api_services_road_Crossroad()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_nearby_NearbySearch_NearbyListener) {
    return (com_amap_api_services_nearby_NearbySearch_NearbyListener.subInstance()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_nearby_UploadInfoCallback) {
    return (com_amap_api_services_nearby_UploadInfoCallback.subInstance()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_nearby_NearbyInfo) {
    return (com_amap_api_services_nearby_NearbyInfo()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_nearby_UploadInfo) {
    return (com_amap_api_services_nearby_UploadInfo()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_nearby_NearbySearch) {
    return (com_amap_api_services_nearby_NearbySearch()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_nearby_NearbySearchResult) {
    return (com_amap_api_services_nearby_NearbySearchResult()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_nearby_NearbySearch_NearbyQuery) {
    return (com_amap_api_services_nearby_NearbySearch_NearbyQuery()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_routepoisearch_RoutePOIItem) {
    return (com_amap_api_services_routepoisearch_RoutePOIItem()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_routepoisearch_RoutePOISearch) {
    return (com_amap_api_services_routepoisearch_RoutePOISearch()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_routepoisearch_RoutePOISearchResult) {
    return (com_amap_api_services_routepoisearch_RoutePOISearchResult()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_routepoisearch_RoutePOISearch_OnRoutePOISearchListener) {
    return (com_amap_api_services_routepoisearch_RoutePOISearch_OnRoutePOISearchListener.subInstance()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_routepoisearch_RoutePOISearchQuery) {
    return (com_amap_api_services_routepoisearch_RoutePOISearchQuery()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_cloud_CloudItem) {
    return (com_amap_api_services_cloud_CloudItem()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_cloud_CloudSearch_Query) {
    return (com_amap_api_services_cloud_CloudSearch_Query()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_cloud_CloudResult) {
    return (com_amap_api_services_cloud_CloudResult()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_cloud_CloudSearch) {
    return (com_amap_api_services_cloud_CloudSearch()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_cloud_CloudSearch_SearchBound) {
    return (com_amap_api_services_cloud_CloudSearch_SearchBound()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_cloud_CloudImage) {
    return (com_amap_api_services_cloud_CloudImage()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_cloud_CloudSearch_Sortingrules) {
    return (com_amap_api_services_cloud_CloudSearch_Sortingrules()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_cloud_CloudItemDetail) {
    return (com_amap_api_services_cloud_CloudItemDetail()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_cloud_CloudSearch_OnCloudSearchListener) {
    return (com_amap_api_services_cloud_CloudSearch_OnCloudSearchListener.subInstance()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_weather_LocalDayWeatherForecast) {
    return (com_amap_api_services_weather_LocalDayWeatherForecast()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_weather_WeatherSearchQuery) {
    return (com_amap_api_services_weather_WeatherSearchQuery()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_weather_WeatherSearch_OnWeatherSearchListener) {
    return (com_amap_api_services_weather_WeatherSearch_OnWeatherSearchListener.subInstance()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_weather_LocalWeatherForecastResult) {
    return (com_amap_api_services_weather_LocalWeatherForecastResult()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_weather_LocalWeatherForecast) {
    return (com_amap_api_services_weather_LocalWeatherForecast()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_weather_WeatherSearch) {
    return (com_amap_api_services_weather_WeatherSearch()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_weather_LocalWeatherLive) {
    return (com_amap_api_services_weather_LocalWeatherLive()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_weather_LocalWeatherLiveResult) {
    return (com_amap_api_services_weather_LocalWeatherLiveResult()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_geocoder_BusinessArea) {
    return (com_amap_api_services_geocoder_BusinessArea()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_geocoder_GeocodeQuery) {
    return (com_amap_api_services_geocoder_GeocodeQuery()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_geocoder_GeocodeSearch) {
    return (com_amap_api_services_geocoder_GeocodeSearch()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_geocoder_RegeocodeResult) {
    return (com_amap_api_services_geocoder_RegeocodeResult()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_geocoder_GeocodeResult) {
    return (com_amap_api_services_geocoder_GeocodeResult()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_geocoder_AoiItem) {
    return (com_amap_api_services_geocoder_AoiItem()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_geocoder_GeocodeSearch_OnGeocodeSearchListener) {
    return (com_amap_api_services_geocoder_GeocodeSearch_OnGeocodeSearchListener.subInstance()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_geocoder_RegeocodeRoad) {
    return (com_amap_api_services_geocoder_RegeocodeRoad()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_geocoder_GeocodeAddress) {
    return (com_amap_api_services_geocoder_GeocodeAddress()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_geocoder_RegeocodeQuery) {
    return (com_amap_api_services_geocoder_RegeocodeQuery()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_geocoder_StreetNumber) {
    return (com_amap_api_services_geocoder_StreetNumber()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_geocoder_RegeocodeAddress) {
    return (com_amap_api_services_geocoder_RegeocodeAddress()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_district_DistrictSearchQuery) {
    return (com_amap_api_services_district_DistrictSearchQuery()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_district_DistrictSearch) {
    return (com_amap_api_services_district_DistrictSearch()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_district_DistrictResult) {
    return (com_amap_api_services_district_DistrictResult()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_district_DistrictItem) {
    return (com_amap_api_services_district_DistrictItem()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_district_DistrictSearch_OnDistrictSearchListener) {
    return (com_amap_api_services_district_DistrictSearch_OnDistrictSearchListener.subInstance()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_help_Inputtips_InputtipsListener) {
    return (com_amap_api_services_help_Inputtips_InputtipsListener.subInstance()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_help_Tip) {
    return (com_amap_api_services_help_Tip()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_help_InputtipsQuery) {
    return (com_amap_api_services_help_InputtipsQuery()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_help_Inputtips) {
    return (com_amap_api_services_help_Inputtips()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_share_ShareSearch_ShareNaviQuery) {
    return (com_amap_api_services_share_ShareSearch_ShareNaviQuery()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_share_ShareSearch_ShareBusRouteQuery) {
    return (com_amap_api_services_share_ShareSearch_ShareBusRouteQuery()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_share_ShareSearch) {
    return (com_amap_api_services_share_ShareSearch()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_share_ShareSearch_ShareFromAndTo) {
    return (com_amap_api_services_share_ShareSearch_ShareFromAndTo()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_share_ShareSearch_ShareWalkRouteQuery) {
    return (com_amap_api_services_share_ShareSearch_ShareWalkRouteQuery()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_share_ShareSearch_ShareDrivingRouteQuery) {
    return (com_amap_api_services_share_ShareSearch_ShareDrivingRouteQuery()..refId = (__this__ as Ref).refId) as T;
  } else if (T == com_amap_api_services_share_ShareSearch_OnShareSearchListener) {
    return (com_amap_api_services_share_ShareSearch_OnShareSearchListener.subInstance()..refId = (__this__ as Ref).refId) as T;
  } else if (T == android_content_Context) {
    return (android_content_Context()..refId = (__this__ as Ref).refId) as T;
  } else if (T == android_content_Intent) {
    return (android_content_Intent()..refId = (__this__ as Ref).refId) as T;
  } else if (T == android_content_ContentProvider) {
    return (android_content_ContentProvider()..refId = (__this__ as Ref).refId) as T;
  } else if (T == android_app_Application) {
    return (android_app_Application()..refId = (__this__ as Ref).refId) as T;
  } else if (T == android_app_Notification) {
    return (android_app_Notification()..refId = (__this__ as Ref).refId) as T;
  } else if (T == android_app_Activity) {
    return (android_app_Activity()..refId = (__this__ as Ref).refId) as T;
  } else if (T == android_app_PendingIntent) {
    return (android_app_PendingIntent()..refId = (__this__ as Ref).refId) as T;
  } else if (T == android_os_Bundle) {
    return (android_os_Bundle()..refId = (__this__ as Ref).refId) as T;
  } else if (T == android_os_Binder) {
    return (android_os_Binder()..refId = (__this__ as Ref).refId) as T;
  } else if (T == android_view_View) {
    return (android_view_View()..refId = (__this__ as Ref).refId) as T;
  } else if (T == android_view_SurfaceView) {
    return (android_view_SurfaceView()..refId = (__this__ as Ref).refId) as T;
  } else if (T == android_view_SurfaceHolder) {
    return (android_view_SurfaceHolder.subInstance()..refId = (__this__ as Ref).refId) as T;
  } else if (T == android_opengl_GLSurfaceView) {
    return (android_opengl_GLSurfaceView()..refId = (__this__ as Ref).refId) as T;
  } else if (T == android_view_View_OnApplyWindowInsetsListener) {
    return (android_view_View_OnApplyWindowInsetsListener.subInstance()..refId = (__this__ as Ref).refId) as T;
  } else if (T == android_view_ViewGroup) {
    return (android_view_ViewGroup()..refId = (__this__ as Ref).refId) as T;
  } else if (T == android_graphics_Point) {
    return (android_graphics_Point()..refId = (__this__ as Ref).refId) as T;
  } else if (T == android_graphics_PointF) {
    return (android_graphics_PointF()..refId = (__this__ as Ref).refId) as T;
  } else if (T == android_graphics_Bitmap) {
    return (android_graphics_Bitmap()..refId = (__this__ as Ref).refId) as T;
  } else if (T == android_widget_ImageView) {
    return (android_widget_ImageView()..refId = (__this__ as Ref).refId) as T;
  } else if (T == java_io_Serializable) {
    return (java_io_Serializable.subInstance()..refId = (__this__ as Ref).refId) as T;
  } else if (T == java_io_File) {
    return (java_io_File()..refId = (__this__ as Ref).refId) as T;
  } else if (T == android_location_Location) {
    return (android_location_Location()..refId = (__this__ as Ref).refId) as T;
  } else if (T == android_view_MotionEvent) {
    return (android_view_MotionEvent()..refId = (__this__ as Ref).refId) as T;
  } else if (T == android_graphics_drawable_Drawable) {
    return (android_graphics_drawable_Drawable()..refId = (__this__ as Ref).refId) as T;
  } else if (T == android_widget_FrameLayout) {
    return (android_widget_FrameLayout()..refId = (__this__ as Ref).refId) as T;
  } else if (T == android_widget_TextView) {
    return (android_widget_TextView()..refId = (__this__ as Ref).refId) as T;
  } else if (T == android_widget_LinearLayout) {
    return (android_widget_LinearLayout()..refId = (__this__ as Ref).refId) as T;
  } else if (T == android_widget_RelativeLayout) {
    return (android_widget_RelativeLayout()..refId = (__this__ as Ref).refId) as T;
  } else if (T == android_os_Parcelable) {
    return (android_os_Parcelable.subInstance()..refId = (__this__ as Ref).refId) as T;
  } else if (T == android_util_Pair) {
    return (android_util_Pair()..refId = (__this__ as Ref).refId) as T;
  }
  
  else {
    return __this__;
  }
}