Sysctl.fromJson constructor

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

Creates a Sysctl from JSON data.

Implementation

factory Sysctl.fromJson(Map<String, dynamic> json) {
  final tempNameJson = json['name'];
  final tempValueJson = json['value'];

  final String tempName = tempNameJson;
  final String tempValue = tempValueJson;

  return Sysctl(
    name: tempName,
    value: tempValue,
  );
}