SELinuxOptions.fromJson constructor

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

Creates a SELinuxOptions from JSON data.

Implementation

factory SELinuxOptions.fromJson(Map<String, dynamic> json) {
  final tempLevelJson = json['level'];
  final tempRoleJson = json['role'];
  final tempTypeJson = json['type'];
  final tempUserJson = json['user'];

  final String? tempLevel = tempLevelJson;
  final String? tempRole = tempRoleJson;
  final String? tempType = tempTypeJson;
  final String? tempUser = tempUserJson;

  return SELinuxOptions(
    level: tempLevel,
    role: tempRole,
    type: tempType,
    user: tempUser,
  );
}