BrokerInstance.fromJson constructor

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

Implementation

factory BrokerInstance.fromJson(Map<String, dynamic> json) {
  return BrokerInstance(
    consoleURL: json['consoleURL'] as String?,
    endpoints: (json['endpoints'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
    ipAddress: json['ipAddress'] as String?,
  );
}