JcoreFluttifyAndroidAs<T> function

  1. @optionalTypeArgs
T JcoreFluttifyAndroidAs<T>(
  1. dynamic __this__
)

Implementation

@optionalTypeArgs
T JcoreFluttifyAndroidAs<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 == cn_jcore_client_android_BuildConfig) {
    return (cn_jcore_client_android_BuildConfig()..refId = (__this__ as Ref).refId) as T;
  } else if (T == cn_jiguang_analytics_page_ActivityLifecycle) {
    return (cn_jiguang_analytics_page_ActivityLifecycle()..refId = (__this__ as Ref).refId) as T;
  } else if (T == cn_jiguang_analytics_page_PushSA) {
    return (cn_jiguang_analytics_page_PushSA()..refId = (__this__ as Ref).refId) as T;
  } else if (T == cn_jiguang_android_BuildConfig) {
    return (cn_jiguang_android_BuildConfig()..refId = (__this__ as Ref).refId) as T;
  } else if (T == cn_jiguang_android_IDataShare) {
    return (cn_jiguang_android_IDataShare.subInstance()..refId = (__this__ as Ref).refId) as T;
  } else if (T == cn_jiguang_api_BaseLogger) {
    return (cn_jiguang_api_BaseLogger()..refId = (__this__ as Ref).refId) as T;
  } else if (T == cn_jiguang_api_JActionExtra) {
    return (cn_jiguang_api_JActionExtra()..refId = (__this__ as Ref).refId) as T;
  } else if (T == cn_jiguang_api_JCoreInterface) {
    return (cn_jiguang_api_JCoreInterface()..refId = (__this__ as Ref).refId) as T;
  } else if (T == cn_jiguang_api_JCoreManager) {
    return (cn_jiguang_api_JCoreManager()..refId = (__this__ as Ref).refId) as T;
  } else if (T == cn_jiguang_api_JDispatchAction) {
    return (cn_jiguang_api_JDispatchAction()..refId = (__this__ as Ref).refId) as T;
  } else if (T == cn_jiguang_api_JProtocol) {
    return (cn_jiguang_api_JProtocol()..refId = (__this__ as Ref).refId) as T;
  } else if (T == cn_jiguang_api_JRequest) {
    return (cn_jiguang_api_JRequest()..refId = (__this__ as Ref).refId) as T;
  } else if (T == cn_jiguang_api_JResponse) {
    return (cn_jiguang_api_JResponse()..refId = (__this__ as Ref).refId) as T;
  } else if (T == cn_jiguang_api_MultiSpHelper) {
    return (cn_jiguang_api_MultiSpHelper()..refId = (__this__ as Ref).refId) as T;
  } else if (T == cn_jiguang_api_utils_ByteBufferUtils) {
    return (cn_jiguang_api_utils_ByteBufferUtils()..refId = (__this__ as Ref).refId) as T;
  } else if (T == cn_jiguang_api_utils_OutputDataUtil) {
    return (cn_jiguang_api_utils_OutputDataUtil()..refId = (__this__ as Ref).refId) as T;
  } else if (T == cn_jiguang_api_utils_ProtocolUtil) {
    return (cn_jiguang_api_utils_ProtocolUtil()..refId = (__this__ as Ref).refId) as T;
  } else if (T == cn_jiguang_net_DefaultHostVerifier) {
    return (cn_jiguang_net_DefaultHostVerifier()..refId = (__this__ as Ref).refId) as T;
  } else if (T == cn_jiguang_net_HttpRequest) {
    return (cn_jiguang_net_HttpRequest()..refId = (__this__ as Ref).refId) as T;
  } else if (T == cn_jiguang_net_HttpResponse) {
    return (cn_jiguang_net_HttpResponse()..refId = (__this__ as Ref).refId) as T;
  } else if (T == cn_jiguang_net_HttpUtils) {
    return (cn_jiguang_net_HttpUtils()..refId = (__this__ as Ref).refId) as T;
  } else if (T == cn_jiguang_net_SSLTrustManager) {
    return (cn_jiguang_net_SSLTrustManager()..refId = (__this__ as Ref).refId) as T;
  } else if (T == cn_jpush_android_service_AlarmReceiver) {
    return (cn_jpush_android_service_AlarmReceiver()..refId = (__this__ as Ref).refId) as T;
  } else if (T == cn_jpush_android_service_DActivity) {
    return (cn_jpush_android_service_DActivity()..refId = (__this__ as Ref).refId) as T;
  } else if (T == cn_jpush_android_service_DaemonService) {
    return (cn_jpush_android_service_DaemonService()..refId = (__this__ as Ref).refId) as T;
  } else if (T == cn_jpush_android_service_DataProvider) {
    return (cn_jpush_android_service_DataProvider()..refId = (__this__ as Ref).refId) as T;
  } else if (T == cn_jpush_android_service_DataShare) {
    return (cn_jpush_android_service_DataShare()..refId = (__this__ as Ref).refId) as T;
  } else if (T == cn_jpush_android_service_DownloadActivity) {
    return (cn_jpush_android_service_DownloadActivity()..refId = (__this__ as Ref).refId) as T;
  } else if (T == cn_jpush_android_service_DownloadProvider) {
    return (cn_jpush_android_service_DownloadProvider()..refId = (__this__ as Ref).refId) as T;
  } else if (T == cn_jpush_android_service_JCommonService) {
    return (cn_jpush_android_service_JCommonService()..refId = (__this__ as Ref).refId) as T;
  } else if (T == cn_jpush_android_service_PushReceiver) {
    return (cn_jpush_android_service_PushReceiver()..refId = (__this__ as Ref).refId) as T;
  } else if (T == cn_jpush_android_service_PushService) {
    return (cn_jpush_android_service_PushService()..refId = (__this__ as Ref).refId) as T;
  } else if (T == cn_jpush_android_service_WakedResultReceiver) {
    return (cn_jpush_android_service_WakedResultReceiver()..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_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_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_util_Pair) {
    return (android_util_Pair()..refId = (__this__ as Ref).refId) as T;
  }

  else {
    return null;
  }
}