PermissionDescriptor.fromJson constructor
PermissionDescriptor.fromJson(
- Map<String, dynamic> json
)
Implementation
factory PermissionDescriptor.fromJson(Map<String, dynamic> json) {
return PermissionDescriptor(
name: json['name'] as String,
sysex: json.containsKey('sysex') ? json['sysex'] as bool : null,
userVisibleOnly: json.containsKey('userVisibleOnly')
? json['userVisibleOnly'] as bool
: null,
allowWithoutSanitization: json.containsKey('allowWithoutSanitization')
? json['allowWithoutSanitization'] as bool
: null,
allowWithoutGesture: json.containsKey('allowWithoutGesture')
? json['allowWithoutGesture'] as bool
: null,
panTiltZoom:
json.containsKey('panTiltZoom') ? json['panTiltZoom'] as bool : null,
);
}