SeccompProfile.fromJson constructor

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

Creates a SeccompProfile from JSON data.

Implementation

factory SeccompProfile.fromJson(Map<String, dynamic> json) {
  final tempLocalhostProfileJson = json['localhostProfile'];
  final tempTypeJson = json['type'];

  final String? tempLocalhostProfile = tempLocalhostProfileJson;
  final String tempType = tempTypeJson;

  return SeccompProfile(
    localhostProfile: tempLocalhostProfile,
    type: tempType,
  );
}