fromMap static method
Gets a possible PermissionRequestResponse instance from a Map value.
Implementation
static PermissionRequestResponse? fromMap(Map<String, dynamic>? map) {
if (map == null) {
return null;
}
final instance = PermissionRequestResponse();
instance.action =
PermissionRequestResponseAction.fromNativeValue(map['action']);
instance.resources = List<String>.from(map['resources']!.cast<String>());
return instance;
}