create static method

ConnectionState create({
  1. bool schemeUtilsIsSetDefaultData = false,
  2. String special_type = "connectionState",
  3. bool special_is_json_scheme_class = true,
  4. String special_return_type = "connectionState",
  5. ConnectionStateWaitingForNetwork? connection_state_waiting_for_network,
  6. ConnectionStateConnectingToProxy? connection_state_connecting_to_proxy,
  7. ConnectionStateConnecting? connection_state_connecting,
  8. ConnectionStateUpdating? connection_state_updating,
  9. ConnectionStateReady? connection_state_ready,
})
override

Generate By General Universe Script Dont edit by hand or anything manual

Implementation

static ConnectionState create({
  bool schemeUtilsIsSetDefaultData = false,
  String special_type = "connectionState",
  bool special_is_json_scheme_class = true,
  String special_return_type = "connectionState",
  ConnectionStateWaitingForNetwork? connection_state_waiting_for_network,
  ConnectionStateConnectingToProxy? connection_state_connecting_to_proxy,
  ConnectionStateConnecting? connection_state_connecting,
  ConnectionStateUpdating? connection_state_updating,
  ConnectionStateReady? connection_state_ready,
}) {
  // ConnectionState connectionState = ConnectionState({
  final Map connectionState_data_create_json = {
    "@type": special_type,
    "@is_json_scheme_class": special_is_json_scheme_class,
    "@return_type": special_return_type,
    "connection_state_waiting_for_network": (connection_state_waiting_for_network != null) ? connection_state_waiting_for_network.toJson() : null,
    "connection_state_connecting_to_proxy": (connection_state_connecting_to_proxy != null) ? connection_state_connecting_to_proxy.toJson() : null,
    "connection_state_connecting": (connection_state_connecting != null) ? connection_state_connecting.toJson() : null,
    "connection_state_updating": (connection_state_updating != null) ? connection_state_updating.toJson() : null,
    "connection_state_ready": (connection_state_ready != null) ? connection_state_ready.toJson() : null,
  };

  connectionState_data_create_json.removeWhere((key, value) => value == null);

  if (schemeUtilsIsSetDefaultData) {
    defaultData.forEach((key, value) {
      if (connectionState_data_create_json.containsKey(key) == false) {
        connectionState_data_create_json[key] = value;
      }
    });
  }
  return ConnectionState(connectionState_data_create_json);
}