ServiceBackendPort.fromJson constructor

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

Creates a ServiceBackendPort from JSON data.

Implementation

factory ServiceBackendPort.fromJson(Map<String, dynamic> json) {
  final tempNameJson = json['name'];
  final tempNumberJson = json['number'];

  final String? tempName = tempNameJson;
  final int? tempNumber = tempNumberJson;

  return ServiceBackendPort(
    name: tempName,
    number: tempNumber,
  );
}