OutboundConnection.fromJson constructor

OutboundConnection.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory OutboundConnection.fromJson(Map<String, dynamic> json) {
  return OutboundConnection(
    connectionAlias: json['ConnectionAlias'] as String?,
    connectionId: json['ConnectionId'] as String?,
    connectionStatus: json['ConnectionStatus'] != null
        ? OutboundConnectionStatus.fromJson(
            json['ConnectionStatus'] as Map<String, dynamic>)
        : null,
    localDomainInfo: json['LocalDomainInfo'] != null
        ? DomainInformationContainer.fromJson(
            json['LocalDomainInfo'] as Map<String, dynamic>)
        : null,
    remoteDomainInfo: json['RemoteDomainInfo'] != null
        ? DomainInformationContainer.fromJson(
            json['RemoteDomainInfo'] as Map<String, dynamic>)
        : null,
  );
}