DataflowEndpoint.fromJson constructor

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

Implementation

factory DataflowEndpoint.fromJson(Map<String, dynamic> json) {
  return DataflowEndpoint(
    address: json['address'] != null
        ? SocketAddress.fromJson(json['address'] as Map<String, dynamic>)
        : null,
    mtu: json['mtu'] as int?,
    name: json['name'] as String?,
    status: (json['status'] as String?)?.toEndpointStatus(),
  );
}