DaemonEndpoint.fromJson constructor

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

Creates a DaemonEndpoint from JSON data.

Implementation

factory DaemonEndpoint.fromJson(Map<String, dynamic> json) {
  final tempPortJson = json['port'];

  final int tempPort = tempPortJson;

  return DaemonEndpoint(
    port: tempPort,
  );
}